General

Profile

tmpvar (Daisuke Kobayashi)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/11/2014

04:22 AM Ruby Bug #10586 (Rejected): function wrongly returns nil in eval()
In the following code, function returns nil in eval().
Getting rid of the last line, it returns 1 as we expect.
~~~ruby
def foo; 1; end
p foo #=> 1
eval 'p foo' #=> nil (NG,expect=1)
foo=1 #<- bug trigger
~~~
tmpvar (Daisuke Kobayashi)

Also available in: Atom