Skip to content

Instantly share code, notes, and snippets.

@objmagic
Last active August 29, 2015 14:25
Show Gist options
  • Select an option

  • Save objmagic/ec29606b2e2fc0a81254 to your computer and use it in GitHub Desktop.

Select an option

Save objmagic/ec29606b2e2fc0a81254 to your computer and use it in GitHub Desktop.
failed..
module type X = sig
type t
end
module type SS = sig
type t
end
module F (S: SS) : X with type t = S.t = struct
include S
end
module MS = struct
type t = A | B
end
module FS = F (MS)
let x = FS.A (* Error: Unbound constructor FS.A *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment