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
Updated by yugui (Yuki Sonoda) about 15 years ago
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
- Target version set to 1.9.2
=begin
=end
Updated by marcandre (Marc-Andre Lafortune) about 15 years ago
- Status changed from Assigned to Closed
=begin
=end
Actions
Like0
Like0Like0