Actions
Bug #6891
closedProtected methods in a module can't call super
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-08-19 trunk 36729) [x86_64-darwin12.0.0]
Backport:
Description
Since r36616 modules that have protected methods and are extended on to another class cannot call super. Here is an example:
module A
def inherited klass
super
end
end
module B
protected
def inherited klass
super
end
end
class C
extend B
extend A
end
class Z < C
end
Before r36616 this code would work, but after r36616 this code raises an exception. I've attached a test case.
Files
Actions
Like0
Like0