Closed jaschdoc closed 2 years ago
@mlutze Interestingly this is a rigidity issue.
If I change l925 in Monomorph to:
Unification.unifyTypes(tpe1.map(_.withRigidity(Rigidity.Flexible)), tpe2) match {
then it no longer crashes.
Presumably #3644 would help, but it probably does not solve all these crashes.
We probably really need to do two things: Introduce the rigidity env and to force all type params to be rigid in the initial subst.
@jaschdoc Can you confirm that #3755 helps?
Affirmative. It does not crash anymore
The
Str.unfold
function seems crash the compiler when the test function is run.Error