Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Uncuaght CType.Unify exception #5619
Original bug ID: 5619
Compiling the following code produces an uncaught CType.Unify exception:
class type foo_t =
type 'a name =
class foo: foo_t =
I am using revision 12464 from the repository.
I know that this code is not valid. The original code used my "open types" extension, but I had to remove those bits to show that the bug was not in my extension.
The bug could be avoided in my original code by changing (self :> foo_t) to (self : #foo_t :> foo_t).
Comment author: @garrigue
Duplicating the environment for GADT pattern matching resulted in wrong detection of self-escape.