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
Three fixes for when the number of type-parameters disagrees with the number of type arguments.
One is in TypeAccumulator, two more are in Substituters.
There's a tricky balance here. On the one hand, crashing early on mismatches is
an excellent means to pinpoint errors in the compiler. On the other hand,
it makes legal but nonsensical programs crash the compiler. So, we should
do the minimum so that "on the other hand" is not observed. Which means doing
this driven by counter-examples (coming from fuzzing or elsewhere) is not a
bad way to tackle the problem.
0 commit comments