mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
19 lines
279 B
Kotlin
Vendored
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()
|
|
}
|
|
}
|
|
|