Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-2
-
None
Description
list = [0,1,2,3,4,5]
assert list[0,1] == list[0..0]
assert list[2,3] == list[2..5]
list[2..5] = [x]
assert list == [0,1,x]
list[2..2] = [2,3,4,5]
assert list == [0,1,2,3,4,5]
Attachments
Issue Links
- is related to
-
GROOVY-942 Empty Range (0..<0) broken in List.getAt(Range)
- Closed
-
GROOVY-2069 CLONE -Empty Range (0..<0) broken in List.getAt(Range)
- Closed