Actions
Bug #2047
closedTime#<=> Raises NoMethodError on Incomparable Argument
Description
=begin
$ cat /tmp/time-spaceship.rb
p Time.now <=> Object.new
$ ruby8 -v /tmp/time-spaceship.rb
ruby 1.8.8dev (2009-09-04) [i686-linux]
nil
$ ruby -v /tmp/time-spaceship.rb
ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux]
/tmp/time-spaceship.rb:1:in <=>': undefined method
<=>' for #Object:0x8d3a77c (NoMethodError)
from /tmp/time-spaceship.rb:1:in `'
This is a specific example of the wider issue marcandre eloquently explained in http://redmine.ruby-lang.org/issues/show/1697 .
=end
Actions
Like0
Like0Like0