Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/variables/varChangedInLoop.fir.kt
T
2021-02-15 11:37:39 +03:00

10 lines
231 B
Kotlin
Vendored

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 = ""
}
}
}