Project

General

Profile

Bug #21175

Updated by andrykonchin (Andrew Konchin) 6 days ago

I would expect that for a Range with Integer right boundary `end - 1` is returned: 

 ```ruby 
 (nil...10).max 
 # => (irb):1:in 'Range#max': cannot exclude end value with non Integer begin value (TypeError) 
 ``` 

 Related issue - https://bugs.ruby-lang.org/issues/17034

Back