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

19 lines
301 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface A {
fun foo(): Int
}
interface B {
fun foo(): Int
}
class Z(val a: A) : A by a, B
fun box(): String {
val s = Z(object : A {
override fun foo(): Int {
return 1;
}
});
return if (s.foo() == 1) "OK" else "fail"
}