Files
kotlin-fork/compiler/testData/codegen/box/delegation/hiddenSuperOverrideIn1.0.kt
T
2019-11-19 11:00:09 +03:00

20 lines
330 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
public interface Base {
fun test() = "base fail"
}
public interface Base2 : Base {
override fun test() = "base 2fail"
}
class Delegate : Base {
override fun test(): String {
return "OK"
}
}
fun box(): String {
return object : Base2, Base by Delegate() {
}.test()
}