-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug] Unused iterator in for loop #11427
Labels
bug
Something isn't working
stale-exempt
Prevents issues from being automatically marked and closed as stale
Comments
Can you provide a more complete example test case? |
What is the status of this bug @aalok-t ? |
WIP. The PR for issue 11426 will also address it, by create a separate token for For. |
brmataptos
added a commit
that referenced
this issue
Jan 10, 2024
I just added a test to #11584 which shows the current errors for V1 and V2. |
brmataptos
added a commit
that referenced
this issue
Jan 17, 2024
brmataptos
added a commit
that referenced
this issue
Jan 18, 2024
brmataptos
added a commit
that referenced
this issue
Jan 18, 2024
* add some tests for for loops * fix missing output case * get rid of tabs, commented tests, remove infinite_lop_with_dead_exits from -v2/tests since output is incorrect * add tests illustrating issue #11427
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
stale-exempt
Prevents issues from being automatically marked and closed as stale
🐛 Bug
We require the user to explicitly use an iterator even when it is not used in the loop body.
To reproduce
Consider the test:
This raises an error
Invalid variable usage. Unbound variable '_'
.Expected Behavior
This should instead be supported by the for loop as done in Rust.
The text was updated successfully, but these errors were encountered: