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

18 lines
271 B
Kotlin

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"
}