Files
kotlin-fork/compiler/testData/codegen/box/traits/traitImplDiamond.kt
T
2019-11-19 11:00:09 +03:00

17 lines
207 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface A {
fun foo() = "Fail"
}
interface B : A
interface C : A {
override fun foo() = "OK"
}
interface D : B, C
class Impl : D
fun box(): String = Impl().foo()