Projects

Ticket #716 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

Undefining a method and then calling the method with a different arity than the original fails wrong

Reported by: eloy.de.enige@… Owned by: eloy.de.enige@…
Priority: blocker Milestone: MacRuby 0.7
Component: MacRuby Keywords: mocha
Cc: kayla.rosebud@…

Description

% cat t.rb    
class X
  undef_method :require

  def method_missing(m, *a, &b)
    p m, a, b
  end
end

X.new.require

% ruby19 t.rb
:require
[]
nil

% macruby t.rb
/Users/eloy/Documents/DEVELOPMENT/MacRuby/macruby/t.rb:1:in `<main>': wrong number of arguments (0 for 0) (ArgumentError)

This most likely has to do with the difference in arity, as calling require *with* an arg works as expected.

Change History

Changed 21 months ago by kayla.rosebud@…

  • cc kayla.rosebud@… added

Cc Me!

Changed 21 months ago by martinlagardette@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.7

Fixed with r4157 :-)

Note: See TracTickets for help on using tickets.