Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassDelegation.kt
2014-10-01 18:52:52 +04:00

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<!> {
}
}