Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Compatibility check wrong for abstract type constructors #7234
Original bug ID: 7234
OCaml version 4.03.0+dev19-2016-04-15
type (_, _) eq = Eq : ('a, 'a) eq | Neq : int -> ('a, 'b) eq
module F (T : sig type _ t end) = struct
The 'Eq' case should not be judged impossible, and the exhaustiveness check should fail but does not. This is a regression since 4.02.3, which correctly prints an exhaustivity warning and then raises Match_failure.