class X
def foo(x = (def foo; 'hello'; end; 'goodbye'))
x
end
end
x = X.new
p x.foo # should be "goodbye"
p x.foo # should be "hello", but is "goodbye"
p foo # this should fail, but doesn't, returns "hello"
Description
Fix coming.
class X
def foo(x = (def foo; 'hello'; end; 'goodbye'))
x
end
end
x = X.new
p x.foo # should be "goodbye"
p x.foo # should be "hello", but is "goodbye"
p foo # this should fail, but doesn't, returns "hello"