Files
kotlin-fork/compiler/testData/codegen/box/super/kt3492TraitFun.kt
T
2015-05-12 19:43:17 +02:00

20 lines
240 B
Kotlin
Vendored

interface ATrait {
open fun foo2(): String = "OK"
}
open class B : ATrait {
}
class C : B() {
inner class D {
val foo: String = super<B>@C.foo2()
}
}
fun box() : String {
val obj = C().D();
return obj.foo
}