Open lukecheeseman opened 6 years ago
This is an infinite loop in the subtype checking code. The compiler is stuck trying to determine whether X[A] box
is a subtype of X[A] ref
. This happens when checking the generic constraints of the call to X.apply
in X.f
.
This looks like a duplicate of #2399. I'm going to leave both issues open since the code example here is simpler.
I was looking at @Praetonus's F-Bounded Polymorphism issue and tweaked the input a bit and hit a segfault. I'm not sure if this is related to other bugs with generics that I can see on the issues list so thought I would raise it just in case.