-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong effect inferred for effectful while
header
#601
Labels
Comments
Note: I assume we just don't add the effects from the header of the while when checking in typer, so might be an easy fix. |
Yes, we just need to add
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following program compiles without typer errors:
but crashes at runtime (in JS), because there is no handler for the
do foo
in the loop header.The type of
fooo
is shown (at least via LSP) asdef fooo(): Unit / {}
.Adding a handler in main generates a warning that the handler is unused (but runs fine).
The text was updated successfully, but these errors were encountered: