dbremner / rubydotnetcompiler

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

super in extend_object -> NoMethodError #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Test case:

  module M
    def M.extend_object(base)
      super
    end
  end

  class C
    extend M
  end

Expected: (nothing)

Actual:

  Unhandled Exception: Ruby.Runtime.RubyException: super: no superclass 
method `extend_object'
  ...

Used in IRB.

Original issue reported on code.google.com by sason...@gmail.com on 25 Oct 2007 at 8:28

GoogleCodeExporter commented 8 years ago

Original comment by meaningi...@gmail.com on 30 Oct 2007 at 2:35

GoogleCodeExporter commented 8 years ago
Doesn't work when the module name is different:

  module M
    M2 = M
    def M2.extend_object(base)
      super
    end
  end

  class C
    extend M
  end

Original comment by sason...@gmail.com on 1 Nov 2007 at 9:12

GoogleCodeExporter commented 8 years ago
Fixed some time ago.

Original comment by sason...@gmail.com on 15 Nov 2007 at 4:57