Actions
Bug #11046
closed__callee__ returns incorrect method name in orphan proc
ruby -v:
ruby 2.3.0dev (2015-04-07 trunk 50171) [i386-mswin32_110]
Description
callee returns incorrect method name in orphan proc.
def foo
1.times{
p __callee__
}
proc{
__callee__
}
end
alias bar foo
pr = bar #=> :bar
GC.start
p pr.call #=> :foo
Reproduce on 2.0 to 2.3dev.
Actions
Like0
Like0Like0