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

// WITH_RUNTIME
fun foo() {
var range : CharRange = 'a' .. 'z'
range.<caret>start
}