Actions
Bug #12176
closedmethod equality of aliased methods breakage on 2.3
Description
Is this intentional?
zsh % cat tmp.rb
module Foo
def foo
return __callee__
end
end
class Bar
include Foo
alias bar foo
end
b = Bar.new
p b.foo
p b.bar
p(b.method(:foo) == b.method(:bar))
zsh % ruby22 -v tmp.rb
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin15]
:foo
:bar
true
zsh % ruby23 -v tmp.rb
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
:foo
:foo
false
Actions
Like0
Like0Like0Like0Like0Like0