Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassFunctions.kt
T
2013-12-11 19:53:50 +04:00

19 lines
272 B
Kotlin

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