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
typeVect (n:Nat) twhereNil:forallt.VectZerotCons:forallnt.t->Vectnt->Vect (Succn) t
It's an illegal type (without boxed), because the compiler can't determine the size of the type from its parameters. This is the case because the size depends on variables (n and t) local to the constructors. It would work if we implemented #134, but there are other similar cases that still won't work.
We should add a proper error message for variables escaping from constructor types into the size calculation function instead of crashing.
The text was updated successfully, but these errors were encountered:
This currently crashes the compiler:
It's an illegal type (without
boxed
), because the compiler can't determine the size of the type from its parameters. This is the case because the size depends on variables (n
andt
) local to the constructors. It would work if we implemented #134, but there are other similar cases that still won't work.We should add a proper error message for variables escaping from constructor types into the size calculation function instead of crashing.
The text was updated successfully, but these errors were encountered: