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

25 lines
321 B
Kotlin
Vendored

interface A {
fun test(): String
}
interface B {
fun test(): String
}
interface C: A, B
class Z(val param: String): C {
override fun test(): String {
return param
}
}
public class MyClass(val value : C) : C by value {
}
fun box(): String {
val s = MyClass(Z("OK"))
return s.test()
}