Skip to content

Method#== returns false for aliased methods that should be equal #6668

Description

@buty4649

Method#== returns false for aliased methods that should be equal to the original method.

Reproduction Steps

Create test.rb:

class Test
  def a; end
  alias b a
end
t = Test.new
p(t.method(:b) == t.method(:a))

Current behavior (mruby):

$ ./bin/mruby test.rb
false

Expected behavior (CRuby):

$ ruby test.rb
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions