-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
What steps will reproduce the problem?
1.
require 'test2'
x=1
$A = proc {x=2}
#def f; $A.call; end
g
print x
2.
def f
a = Proc.new {return 1} # replace Proc.new with proc, the result is
different!
a.call
print 'xxx'
end
f
Original issue reported on code.google.com by xue.yong...@gmail.com on 30 Jun 2007 at 5:48