Project

General

Profile

Actions

Bug #12176

closed

method equality of aliased methods breakage on 2.3

Added by shyouhei (Shyouhei Urabe) over 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:74326]

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

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #11964: __callee__ in aliased methods defined in a module returns an incorrect valueClosedko1 (Koichi Sasada)Actions
Related to Ruby master - Bug #12761: Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method`ClosedActions
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Related to Bug #11964: __callee__ in aliased methods defined in a module returns an incorrect value added

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED

I think it is a bug.

Actions #3

Updated by shyouhei (Shyouhei Urabe) about 8 years ago

  • Related to Bug #12761: Ruby 2.3.1 has a bug in `Module#alias` and `Module#alias_method` added

Updated by shyouhei (Shyouhei Urabe) over 7 years ago

  • Status changed from Open to Closed

Confirmed fixed. cf #11964

Actions #5

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.2: DONTNEED, 2.3: DONE
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0