Files
kotlin-fork/compiler/testData/codegen/box/classes/kt3414.kt
T
Mikhael Bogdanov 86f2a6dc69 Tests for not reproduced KT-1770, KT-3001 and KT-3414
#KT-3414 Can't Reproduced
 #KT-3001 Can't Reproduced
 #KT-1770 Can't Reproduced
2013-06-18 14:46:14 +04:00

18 lines
263 B
Kotlin

trait A {
fun foo(): Int
}
trait 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"
}