Projects

Ticket #153 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

TypeError not raised for 'String + nil'

Reported by: parzival@… Owned by: lsansonetti@…
Priority: minor Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

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.

Change History

Changed 3 years ago by lsansonetti@…

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

Fixed in #711/trunk.

Note: See TracTickets for help on using tickets.