Actions
Bug #13752
closedCan't observe sibling refinements
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-07-18 trunk 59355) [x86_64-darwin15]
Description
Sorry in advance if already reported elsewhere, but is this intentional?
class Foo
using Module.new {
refine Foo do
def foo
puts "foo"
end
end
}
using Module.new {
refine Foo do
def bar
foo
end
end
}
new.bar
end
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Status changed from Assigned to Closed
This appears to be fixed in the master branch (printing foo
), though it is still broken in 2.6. Not sure what commit fixed it.
Actions
Like0
Like0