Files
kotlin-fork/idea/testData/inspectionsLocal/replaceRangeStartEndInclusiveWithFirstLast/endInclusiveLongRange.kt.after
T
Jan Gerling 162de77b71 Add inspection to detect boxes *Range.start & endInclusive
These properties can be replaced with equivalent collections first & last.
#KT-15537 Fixed
2019-04-11 18:58:04 +03:00

7 lines
81 B
Plaintext
Vendored

// WITH_RUNTIME
fun foo() {
var range : LongRange = 1L..2L
range.last
}