berkesokhan / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
1 stars 0 forks source link

super in module initializer #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Blocks Rake.

Original comment by sanxiyn on 20 Nov 2007 at 12:48

GoogleCodeExporter commented 9 years ago

Original comment by meaningi...@gmail.com on 3 Dec 2007 at 2:49