Actions
Bug #14549
closedabort Date#step
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0dev (2018-02-24 trunk 62563) [x86_64-darwin16]
Backport:
Description
require 'date'
o = Object.new
def o.<=>(*)
2
end
Date.new(2000, 1, 1).step(3, o) { }
#=> abort
I think, It's not intentional behavior.
And it should raise TypeError
or ArgumentError
, maybe.
Actions
Like0
Like0Like0Like0Like0Like0