Files
kotlin-fork/idea/testData/inspectionsLocal/replaceRangeStartEndInclusiveWithFirstLast/startIntRange.kt
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
86 B
Kotlin
Vendored

// WITH_RUNTIME
fun foo() {
var range : IntRange = 1..2
range.<caret>start
}