From: usa@... Date: 2015-06-30T04:07:03+00:00 Subject: [ruby-core:69799] [Ruby trunk - Bug #11046] __callee__ returns incorrect method name in orphan proc Issue #11046 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- Bug #11046: __callee__ returns incorrect method name in orphan proc https://bugs.ruby-lang.org/issues/11046#change-53193 * Author: Koichi Sasada * Status: Closed * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.3.0dev (2015-04-07 trunk 50171) [i386-mswin32_110] * Backport: 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- __callee__ returns incorrect method name in orphan proc. ```ruby 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. -- https://bugs.ruby-lang.org/