Files
kotlin-fork/js/js.translator/testData/box/expression/function/overloadingWithInheritance.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

23 lines
317 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1126
package foo
interface A {
fun foo(i: Int) = "A"
}
interface B {
fun foo(s: String) = "B"
}
class C : A, B {
fun foo() = "C"
}
fun box(): String {
assertEquals("A", C().foo(1))
assertEquals("B", C().foo(""))
assertEquals("C", C().foo())
return "OK"
}