Files
kotlin-fork/js/js.translator/testData/box/trait/traitExtendsTrait.kt
T
2018-09-12 09:49:25 +03:00

22 lines
379 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1295
package foo
interface Test {
fun addFoo(s: String): String {
return s + "FOO"
}
}
interface ExtendedTest : Test {
fun hooray(): String {
return "hooray"
}
}
class A() : ExtendedTest {
fun eval(): String {
return addFoo(hooray());
}
}
fun box() = if (A().eval() == "hoorayFOO") "OK" else "fail"