Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/variables/varChangedInLoop.kt
T
2021-03-16 12:25:23 +03:00

12 lines
249 B
Kotlin
Vendored

// FIR_IDENTICAL
public fun foo() {
var i: Any = 1
if (i is Int) {
while (i != 10) {
i<!UNRESOLVED_REFERENCE!>++<!> // Here smart cast should not be performed due to a successor
i = ""
}
}
}