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
Rejected [@@unboxed] on a GADT in a mutual definition with a polymorphic type constructor #7774
Original bug ID: 7774
The following mutual type definition is rejected.
According to the manual, it should be accepted, and there does not seem to be any good reason to reject it. (Hopefully, an element of ['a t] can never be a [float].)
Steps to reproduce
Just run OCaml on a file containing the two lines.
The problem is the same with the 4.07.0+trunk version.