Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.fir.kt
T

8 lines
220 B
Kotlin
Vendored

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