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

10 lines
226 B
Kotlin
Vendored

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