Simplest test case - sander (Sander Land), 11/09/2008 06:22 am
Download (258 Bytes)
def genmod
Module.new{
def foo
super
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