Add inspection for ranges with start > endInclusive #KT-18438 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
647558c98a
commit
13a2612e20
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.EmptyRangeInspection
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
for (i in 9<caret>..0) {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
for (i in 9 downTo 0) {}
|
||||
}
|
||||
Reference in New Issue
Block a user