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
This code should not pass typechecking, but it does (see #3416). The result is an error in the generated code. But idris2 --exec returns code 0.
module AutoLazyOff
%auto_lazy off
dataX=Af:Lazy X -> X
f x@A= x
main:IO()
main = ignore $ pure $ f A
Expected Behavior
The exit code must be non-zero.
Observed Behavior
$ idris2 --codegen chez --exec main AutoLazyOff.idr;echo$?
Exception: attempt to reference unbound identifier pat0C-58-0 at line 648, char 47 of /project/directory/build/exec/_tmpchez_app/_tmpchez.ss
0
Steps to Reproduce
This code should not pass typechecking, but it does (see #3416). The result is an error in the generated code. But
idris2 --exec
returns code 0.Expected Behavior
The exit code must be non-zero.
Observed Behavior
The text was updated successfully, but these errors were encountered: