`UnboundMethod#owner` incorrect for aliased methods in 1.9 mode #2103

Closed
alindeman opened this Issue Dec 20, 2012 · 0 comments

Projects

None yet

2 participants

@alindeman
class Foo
  class << self
    alias_method :another_new, :new
  end
end

singleton_class = class << Foo; self; end

p singleton_class.instance_method(:new).owner
p singleton_class.instance_method(:another_new).owner

MRI 1.9 returns:

Class
#<Class:Foo>

Rubinius in 1.9 mode (rubinius 2.0.0rc1 (1.9.3 release 2012-11-02 JI) [x86_64-apple-darwin12.2.1]) returns:

Class
Class
@dbussink dbussink closed this in c7d8d0c Feb 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment