Open yallop opened 8 years ago
The following program is rejected with Fatal error: exception Ctype.Unify(_):
Fatal error: exception Ctype.Unify(_)
module type T = sig type t val x : t end let get {I:T} () = I.x let f () = let implicit module M :T = struct type t = int let x = 0 end in get ()
but should be rejected with the usual message about a type constructor escaping its scope.
The following program is rejected with
Fatal error: exception Ctype.Unify(_)
:but should be rejected with the usual message about a type constructor escaping its scope.