You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ruby -v
jruby 9.2.8.0 (2.5.3) 2019-08-12 a1ac7ff OpenJDK 64-Bit Server VM 25.232-b09 on 1.8.0_232-b09 +jit [linux-x86_64]
$ ruby test.rb
NoMethodError: undefined method `foo' for "foo":StringDid you mean? fork <main> at tmp/eval_refine.rb:10 eval at org/jruby/RubyKernel.java:1061 <main> at tmp/eval_refine.rb:9
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
usingintoevalresolves the issue.