mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
12 lines
130 B
Kotlin
12 lines
130 B
Kotlin
trait D {
|
|
fun foo() {}
|
|
}
|
|
|
|
fun test(d: Any?) {
|
|
if (d !is D) return
|
|
|
|
class Local : D by <!DEBUG_INFO_SMARTCAST!>d<!> {
|
|
}
|
|
}
|
|
|