-
Notifications
You must be signed in to change notification settings - Fork 26
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
Local variables through let expressions are broken #6
Comments
This is not right. Sent from my iPhone |
Here is a test that reproduces the bug (I will commit it to the repo)
When run, this prints out
|
Shouldn't it read "expected 1025"? |
Found the bug, fix should be easy. |
@supercooldave The key thing is not the value, but that the value of the field and variable are different. If they are both at 1025, bug still persists. |
My comment was on the text of the test case. |
@supercooldave Right! My bad. I'll fix. EDIT Fixed. It now reads "Got 1024, expected something else" :) |
0e31620 The test passes now. |
I am compiling this code:
in which I expect that
i
is a local variable, whose initial value is that ofthis.start
, and for each turn in the loop,i
is incremented by 1.However, the code that I see generated is the following:
which replaces
i
withthis.start
and modifiesthis.start
in each increment! This clearly cannot be right, right?The text was updated successfully, but these errors were encountered: