Replace rangeTo with until: fix false negative with parenthesized expression
#KT-29153 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c183f0285d
commit
b9d8466fc0
@@ -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) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user