Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt
T
2021-05-25 13:28:29 +03:00

9 lines
195 B
Kotlin
Vendored

// FIR_IDENTICAL
fun foo() {
var v: String? = "xyz"
// It is possible in principle to provide smart cast here
v<!UNSAFE_CALL!>.<!>length
v = null
v<!UNSAFE_CALL!>.<!>length
}