Files
kotlin-fork/compiler/testData/codegen/box/traits/kt3500.kt
T
Alexey Andreev e6b0cc64bd Fix copying of non-abstract functions of interfaces in JS BE
Fix copying of non-abstract functions of interfaces to implementing
classes when implementing class inherits interface via 2+ paths.

See KT-18187
2017-05-31 11:21:13 +03:00

15 lines
220 B
Kotlin
Vendored

interface BK {
fun foo(): String = 10.toString()
}
interface KTrait: BK {
override fun foo() = 30.toString()
}
class A : BK, KTrait {
}
fun box(): String {
return if (A().foo() == "30") "OK" else "fail"
}