-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Lambda converted to block treats 'return' like it's a proc #1985
Comments
Confirmed in JRuby 1.7. As of jruby_head #89076918f8af17bf2a3c256d3cd7a791331c5e53 this returns |
|
Added info this bug is that 1.8 mode should return -1 and 1.9+ returns [-1]. |
Works on 9k. 1.7.x is EOL and this will not get fixed. Marking WONTFIX |
Marking DIDNTCARETOFIXINTIME |
@Nakilon well we did fix in one version of JRuby just not the older one. Keep it classy now. We can only support so much at a time... |
Calling #test will return [-1] in mri where-as jruby will return -1. This seems to occur when converting a lambda to a block (the return now leaves the method not the lambda).
The text was updated successfully, but these errors were encountered: