Files
kotlin-fork/idea/testData/inspectionsLocal/replaceRangeStartEndInclusiveWithFirstLast/customRange.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

11 lines
228 B
Kotlin
Vendored

// PROBLEM: none
class MyRange : ClosedRange<String> {
override val start: String get() = "a"
override val endInclusive: String = "z"
}
fun main() {
val range = MyRange()
val start = range.<caret>endInclusive
}