-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Explicit topic variable _ disappears in a module's outermost scope #86
Comments
Thanks for the fix! And sorry for the unending barrage of bug reports, I do try to see if I can fix them myself first, but you know the code best. |
Thanks for the bug-reports. I admire your testing skills. No reason to be sorry. :) |
With the simplifications I think you have introduced a regression, var f = true
while (f) {
assert(_)
f = false
} |
This is intended: the var f = true
while (f) { |_|
assert(_)
f = false
} This also allows the following code to work as intended (using [1,2,3,4,5].map { if (_.is_even) { _/2 } else { 3*_ + 1 } } |
Aha, right. |
Am I doing something wrong? The code works if you use
|block_scope|
binding in theeach
and the sub-block, it's only_
alone that isn't bound.The text was updated successfully, but these errors were encountered: