Closed dannywillems closed 7 years ago
The sugar with type t = Int.t is considered as an intersection.
with type t = Int.t
let module M = fun(x : sig type t end, y : N.t with type y.t = x.t) -> 42 --> let module M = fun(x : sig type t end, y : N.t INTER { type t = x.t }) -> 42.
let module M = fun(x : sig type t end, y : N.t with type y.t = x.t) -> 42
let module M = fun(x : sig type t end, y : N.t INTER { type t = x.t }) -> 42
The sugar
with type t = Int.t
is considered as an intersection.