Add inspection to detect boxes *Range.start & endInclusive
These properties can be replaced with equivalent collections first & last. #KT-15537 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
401d8c2d70
commit
162de77b71
+11
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user