Actions
Bug #17271
closedArray#[]= puts -1 at the end-component of the endless range in its exception message
Description
irb(main):001:0> [*0..5][-7..] = 1
Traceback (most recent call last):
5: from /home/mrkn/.rbenv/versions/2.7/bin/irb:23:in `<main>'
4: from /home/mrkn/.rbenv/versions/2.7/bin/irb:23:in `load'
3: from /home/mrkn/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/irb-1.2.4/exe/irb:11:in `<top (required)>'
2: from (irb):1
1: from (irb):1:in `[]='
RangeError (-7..-1 out of range)
The message should be -7.. out of range
.
Actions
Like0
Like0