Files
kotlin-fork/compiler/testData/codegen/box/super/kt3492TraitFun.kt
T
2018-06-28 12:26:41 +02:00

21 lines
266 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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
}