Files
kotlin-fork/js/js.translator/testData/box/trait/traitExtendsTwoTraits.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

27 lines
337 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1135
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()