Actions
Bug #19231
openInteger#step and Float::INFINITY - inconsistent behaviour when called with and without a block
Bug #19231:
Integer#step and Float::INFINITY - inconsistent behaviour when called with and without a block
Description
The initial issue was reported here https://github.com/oracle/truffleruby/issues/2797.
0.step(Float::INFINITY, 10) returns:
Integerswhen called with a blockFloatswhen called without a block
I would expect Floats to be returned in both cases.
Examples:
When to argument is a finite Float value then calling with a block returns Floats as well:
Wondering whether it's intentional behaviour.
I've found a related issue https://bugs.ruby-lang.org/issues/15518.
Actions