Issue #4058 has been updated by Yui NARUSE.

Status changed from Open to Closed


----------------------------------------
Bug #4058: __method__ does not return correct method name for aliased methods
http://redmine.ruby-lang.org/issues/4058

Author: john mair
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2p0 (2010-08-18) [i386-mingw32]


=begin
 class Test
   def my_method
     __method__
   end
 
   alias_method :my_alias, :my_method
 end
 
 Hello.new.my_method #=> :my_method
 Hello.new.my_alias #=> :my_method
 
 I think that `Hello.new.my_alias` should instead return :my_alias
=end



-- 
http://redmine.ruby-lang.org