You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throw a type error when using hk-types in unions or intersections (#16712)
Throw a type error instead of crashing when using higher-kinded types in
unions or intersections.
We check kindedness only in PostTyper (to avoid cycles), which means we
might get into situations where we combine a higher-kinded type in a
union or intersection, which is illegal. In this case we now diagnose
the problem with a TypeError instead of failing an assert. However,
after Typer we do fail since by then such situations should have been
checked by then.
Fixes#16696
0 commit comments