Skip to content
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

Regression with closures #2050

Closed
asterite opened this issue Jan 24, 2016 · 1 comment
Closed

Regression with closures #2050

asterite opened this issue Jan 24, 2016 · 1 comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler

Comments

@asterite
Copy link
Member

This code now triggers a compiler bug:

def capture(&block)
  block
end

a = 1
capture do
  a
end
1

This was introduced in 0.11.0 (probably in 81a7af2). I guess we'll fix this soon and release a new version.

@asterite asterite added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler labels Jan 24, 2016
@asterite
Copy link
Member Author

This only happens with top-level closured vars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler
Projects
None yet
Development

No branches or pull requests

1 participant