Projects

Ticket #718 (new defect)

Opened 21 months ago

Last modified 4 months ago

Defining a method on class Class also defines it on Module and vice versa

Reported by: eloy.de.enige@… Owned by: eloy.de.enige@…
Priority: blocker Milestone:
Component: MacRuby Keywords: mocha
Cc: martin@…, ernest.prabhakar@…

Description

% cat t.rb
class Module
  def foo
    Module
  end
end

class Class
  def foo
    Class
  end
end

p Module.new.foo
p Class.new.foo

% macruby t.rb
Class
Class

Change History

Changed 8 months ago by martin@…

Changed 8 months ago by martin@…

  • cc martin@… added

Cc Me!

Changed 8 months ago by eloy.de.enige@…

In it's current state #717 is most probably a duplicate. But please check that that works as well when fixing this one.

Changed 4 months ago by ernest.prabhakar@…

  • cc ernest.prabhakar@… added

Cc Me!

Note: See TracTickets for help on using tickets.