Actions
Feature #7251
closedusing usings in usinged Module
Description
I suspect Kernel#using to using all the already usinged Refinements in usinged Module. For example:
module X
refine Fixnum do
def foo; p :foo; end
end
end
module Y
refine Fixnum do
def bar; p :bar; end
end
end
module Z
using X
using Y
end
class Foo
using Z
p 1.foo
p 1.bar
end
(original gist here: https://gist.github.com/3985735 )
Updated by matsuda (Akira Matsuda) about 12 years ago
s/suspect/expect/
Updated by shugo (Shugo Maeda) about 12 years ago
- Status changed from Open to Assigned
Updated by shugo (Shugo Maeda) about 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r37399.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- eval.c (rb_using_module): using should be used indirectly.
[ruby-dev:46326] [Feature #7251]
Actions
Like0
Like0Like0Like0