Confusing error message when existential parameter used in the body #336
Labels
bug
Something isn't working
C: well-formedness
Component: A check that is not the interval check
S: available
This is available to be worked on
When trying to compile the following program:
The compiler says:
The actual problem in the program is use of
N
inbundle a[N]
. The problem is that when running the program,N
is not yet bound to a value because we have not evaluated theexists
binding. In general, existential parameters cannot be used in the body because of this problem. Instead, the correct program should just saybundle a[N]
.Our well-formedness pass should emit an error to this effect.
The text was updated successfully, but these errors were encountered: