Files
kotlin-fork/compiler/fir/resolve/testData/resolve/smartcasts/variables/delayedAssignment.kt
T

15 lines
203 B
Kotlin
Vendored

// !DUMP_CFG
class A {
fun foo() {}
}
fun test(b: Boolean) {
val a: A?
if (b) {
a = A()
a.foo()
} else {
a = null
}
a.<!INAPPLICABLE_CANDIDATE!>foo<!>()
}