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
Internal typechecker error triggered by a constraint on self type in a class type #7711
Original bug ID: 7711
The following code fails (on ? — 4.02.3 — trunk) with a failed assertion in Ctype.object_fields:
type 'a r = <w: int -> int; .. > as 'a
Note also that the snippet above compiles fine if 'not_self is replaced by 'self, if the type constructor r is inlined, or if ct is made a virtual class.
Comment author: @garrigue
That's a bad one.
I see no easy solution short of changing the type of csig_self to something safer.