{:in_class_definition=>"new method!"}
NoMethodError: undefined method `new_method' for #<Object:0xcfa9dbf>
test at test.rb:15
<top> at test.rb:19
It seems like there's something amiss with the lexical scoping of the method; in MRI, methods defined with the lexical scope where a refinement is activated can make use of that refinement. Is this expected behaviour in JRuby as of 9.0.4.0?
The text was updated successfully, but these errors were encountered:
If you refine Integer, then calls against Fixnum should see that
refinement.
Obviously this is super inefficient right now and caches nothing.
Relates to #3548.
(Moved from a comment in #1062)
I've hit some strange behaviour trying to use refinements with version 9.0.4.0:
outputs
It seems like there's something amiss with the lexical scoping of the method; in MRI, methods defined with the lexical scope where a refinement is activated can make use of that refinement. Is this expected behaviour in JRuby as of 9.0.4.0?
The text was updated successfully, but these errors were encountered: