Closed ohad closed 7 years ago
Ooops, not a bug --- see first class modules in the manual, package-constraints
in first-class modules cannot constrain a module.
Yeah, we follow the same restriction as first-class modules at the moment. There's no fundamental reason it couldn't be extended to allow any module type, but the implementation is quite a bit easier this way.
I'm getting a syntax error in test.ml.txt at:
let gnu { X : Sig2 with module A = Bar} = 1
whilelet gnat { X : Sig2 with type t = int} = 1
works fine.