We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code doesn't compile
module type Foo = sig type 'a t val f : 'a t -> int end implicit module Foo1 = struct type 'a t = unit let f () = 0 end implicit module Foo2 = struct type 'a t = [> `Foo | `Bar ] as 'a let f (_: 'a t) = 0 end let f (implicit M: Foo) x = M.f x let () = f `Foo ; ()
cc @def-lkb
The text was updated successfully, but these errors were encountered:
This looks like expected behaviour. The code doesn't compile because the module Foo2 doesn't match the module type Foo.
Foo2
Foo
Sorry, something went wrong.
No branches or pull requests
The following code doesn't compile
cc @def-lkb
The text was updated successfully, but these errors were encountered: