Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/initialization.kt
T
2015-11-25 18:26:15 +03:00

7 lines
203 B
Kotlin
Vendored

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