module M
def initialize; super; puts 'module init'; end
end
class C
include M
def initialize; super; puts 'class init'; end
end
C.new
Unhandled Exception: Ruby.Runtime.RubyException: super: no superclass
method `initialize'
If I remove "super" from module initializer, it works fine.
Original issue reported on code.google.com by sanxiyn on 20 Nov 2007 at 11:48
Original issue reported on code.google.com by
sanxiyn
on 20 Nov 2007 at 11:48