Convert intention "a..b-1 -> a until b" into weak warning inspection

So #KT-17895 Fixed
This commit is contained in:
Ilya Zorin
2017-05-25 18:25:11 +03:00
committed by Mikhail Glukhikh
parent 0fd42bc747
commit 5e265b3d17
26 changed files with 242 additions and 157 deletions
@@ -0,0 +1,9 @@
fun foo() {
val n = 10
for (i in 0 .. n - 1) {}
}
fun bar() {
val n = 10
for (i in 0.rangeTo(n - 1)) {}
}