topazproject / topaz

A high performance ruby, written in RPython
topazruby.com
BSD 3-Clause "New" or "Revised" License
1k stars 84 forks source link

Module method fails to call super #864

Open mame opened 8 years ago

mame commented 8 years ago

Hello,

module M
  def foo
    p M
    super
  end
end

class C
  def foo
    p C
  end
end

class D < C
  include M
end

D.new.foo
$ ruby -v t.rb
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
M
C

$ topaz/bin/topaz t.rb
M
t.rb:4:in `foo': undefined method `foo' for M (NoMethodError)
        from t.rb:18:in `<main>