Debian Codegraph @

testsuite/tests/typing-short-paths/pr7543.compilers.reference

raw
1 module type S = sig type t end
2 module N : sig type 'a t = 'a end
3 val f : (module S with type t = unit) -> unit = <fun>
4 Line 1, characters 19-20:
5 1 | let () = f (module N);;
6 ^
7 Error: Signature mismatch:
8 Modules do not match: sig type 'a t = 'a end is not included in S
9 Type declarations do not match:
10 type 'a t = 'a
11 is not included in
12 type t
13 They have different arities.
14