Debian Codegraph @

testsuite/tests/typing-signatures/pr6672.ocaml.reference

raw
1 module type S = sig type 'a t end
2 module type T = sig type 'a t = 'a list end
3 Line 1, characters 23-43:
4 1 | module type T = S with type -'a t = 'a list;;
5 ^^^^^^^^^^^^^^^^^^^^
6 Error: In this definition, expected parameter variances are not satisfied.
7 The 1st type parameter was expected to be contravariant,
8 but it is injective covariant.
9