-
-
Notifications
You must be signed in to change notification settings - Fork 924
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
Refinements in eval with binding #6017
Comments
It would appear that the refinement scope is not being seen by the eval scope here. |
I have a fix locally. There does not appear to be any specs... perhaps you could contribute some to https://github.com/ruby/spec? |
FYI I did add one simple spec but it would be great to expand that for other forms of eval + binding. |
Hey! I found yet another edge case: https://github.com/palkan/ruby-compatibility-examples/blob/master/examples/refine_eval_binding.rb (and failing build: https://github.com/palkan/ruby-compatibility-examples/runs/906167086?check_suite_focus=true). If I remove |
Environment
Expected Behavior
Expected this script to behave the same way as in MRI 2.6.5:
$ ruby -v ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18] $ ruby test.rb "bar"
Actual Behavior
Moving
using
intoeval
resolves the issue.The text was updated successfully, but these errors were encountered: