Replace rangeTo with until: fix false negative with parenthesized expression

#KT-29153 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-02 21:24:56 +09:00
committed by Mikhail Glukhikh
parent c183f0285d
commit b9d8466fc0
4 changed files with 25 additions and 7 deletions
@@ -0,0 +1,7 @@
// WITH_RUNTIME
fun example() {
val max = 5
for (i in 0..<caret>(max - 1)) {
}
}
@@ -0,0 +1,7 @@
// WITH_RUNTIME
fun example() {
val max = 5
for (i in 0 until max) {
}
}