[MacRuby-devel] [MacRuby] #512: MacRuby misreports #initialize argument count in error messages

MacRuby ruby-noreply at macosforge.org
Thu Dec 17 20:51:40 PST 2009


#512: MacRuby misreports #initialize argument count in error messages
-----------------------------------+----------------------------------------
 Reporter:  matthew@…              |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  major                  |   Milestone:                       
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------
 Given the following code,

 {{{
 class A
   def initialize(a, b, c)
   end
 end

 A.new
 }}}

 '''Expected result (Ruby 1.9.1)'''

 {{{ArgumentError: wrong number of arguments (0 for 3)}}}

 '''Actual result (MacRuby 0.5b2)'''

 {{{ArgumentError: wrong number of arguments (0 for 1)}}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/512>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list