Files
kotlin-fork/js/js.translator/testData/box/trait/traitExtendsTwoTraits.kt
T
2016-09-29 12:00:43 +03:00

26 lines
303 B
Kotlin
Vendored

package foo
interface A {
fun addFoo(s: String): String {
return s + "K"
}
}
interface B {
fun hooray(): String {
return "O"
}
}
interface AD : A, B {
}
class Test() : AD {
fun eval(): String {
return addFoo(hooray());
}
}
fun box() = Test().eval()