-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fatal error when using itN
resulting from a bind
#977
Comments
I have a PR with a fix (#978), but overall I'm not happy with the way we handle
|
@byorgey I like option 1) because it will force us to use the values correctly in all places. |
@xsebek What I had in mind for option 2) should do that as well, though I guess I did not explain it well. I had in mind a GADT where the type parameter actually enforced whether there could be |
Describe the bug
Sometimes, using one of the auto-generated
itN
variables can trigger a fatal "bad application ofexecConst
" error, because theitN
contains aVResult
which theexecConst
code is not expecting to see.To Reproduce
create "tree"
def mk = r <- build {}; return r end
mk
give it0 "tree"
Expected behavior
This ought to work. Probably we just need to strip
VResult
before storing the value of anitN
variable.Screenshots
The text was updated successfully, but these errors were encountered: