8 lines
229 B
Kotlin
Vendored
8 lines
229 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
fun foo() {
|
|
var v: String? = "xyz"
|
|
// It is possible in principle to provide smart cast here
|
|
v<!UNSAFE_CALL!>.<!>length
|
|
v = null
|
|
<!OI;DEBUG_INFO_CONSTANT!>v<!><!UNSAFE_CALL!>.<!>length
|
|
} |