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).
The text was updated successfully, but these errors were encountered:
Comment author: @garrigue
Duplicating the environment for GADT pattern matching resulted in wrong detection of self-escape.