Add inspection for ranges with start > endInclusive #KT-18438 Fixed

This commit is contained in:
Kirill Rakhman
2017-06-14 00:10:21 +03:00
committed by Mikhail Glukhikh
parent 647558c98a
commit 13a2612e20
13 changed files with 261 additions and 33 deletions
+1
View File
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.EmptyRangeInspection
+5
View File
@@ -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) {}
}