[MacRuby-devel] [MacRuby] #153: TypeError not raised for 'String + nil'

MacRuby ruby-noreply at macosforge.org
Thu Nov 6 10:47:02 PST 2008


#153: TypeError not raised for 'String + nil'
-------------------------------------+--------------------------------------
 Reporter:  parzival at mindspring.com  |       Owner:  lsansonetti at apple.com
     Type:  defect                   |      Status:  new                  
 Priority:  minor                    |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 This is fairly minor since it's something that ought not to happen, except
 that both macirb and macruby lock up when it happens.

 This works (well, you get the expected error):
 >> "stuff" << nil
 TypeError: can't convert nil into String

 This does not:
 >> "stuff" + nil

 I end up having to kill it.

 I've tried it with both 0.3 and the latest testing branch.

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



More information about the MacRuby-devel mailing list