Actions
Bug #3423
closedInconsistent behaviour of Module#const_get with included modules
Description
=begin
module Foo
A = 1
end
class Object
include Foo
end
class Bar
include Foo
end
Object.const_get(:A, false) # => works fine
Bar.const_get(:A, false) # => raises error
Untested patch attached. This might also fix #3422.
=end
Files
Updated by naruse (Yui NARUSE) over 13 years ago
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
Updated by nahi (Hiroshi Nakamura) over 13 years ago
- Target version changed from 1.9.2 to 1.9.3
Updated by matz (Yukihiro Matsumoto) over 13 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r32283.
Magnus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
Actions
Like0
Like0Like0Like0Like0