Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassFunctions.fir.kt
T

19 lines
198 B
Kotlin
Vendored

interface D {
fun foo(): String = ""
}
fun test(d: Any?) {
if (d !is D) return
class Local {
fun f() {
d.foo()
}
fun f1() = d.foo()
fun f2(): String = d.foo()
}
}