Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassFunctions.kt
2015-05-12 19:43:17 +02:00

19 lines
279 B
Kotlin
Vendored

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