Project

General

Profile

Bug #730 » smallbug19.rb

Simplest test case - sander (Sander Land), 11/09/2008 06:22 AM

 
def genmod
Module.new{
def foo
super
end
}
end

mod = genmod
mod2= genmod # comment this line to stop infinite recursion and get a (correct) 'no superclass method' error.
klass = Class.new{ include mod }
klass.new.foo # infinite recursion
(2-2/2)