Project

General

Profile

Bug #22114

Updated by p8 (Petrik de Heus) 4 months ago

If a line ends with a endless ranges without parantheses, the range will continue on the next line making it the end of the range: 
 ``` ruby 
 range = 0.. 
 foo = 20 
 range.end 
 => 20 
 ``` 

 This can be some what unexpected (min would expected to be 100 instead of 20): unexpected: 
 ```ruby 
 min = 100.clamp 0.. 
 max = 20 
 min 
 => 20 
 ```

Back