tario/fastruby — Issue #36: Redefine of methods cause duplicated objects on cache
Author: tario
Created: 2011-10-23 21:48:29+00:00
State: open

This code will generate three objects for X#foo instead of expected (two)

code = "
class X
def foo
6
end
end
"

fastruby code
X.new.foo.should be == 6
fastruby "class ::JU4
def foo
9
end
end
"
X.new.foo.should be == 9
fastruby code
X.new.foo.should be == 6