Files
kotlin-fork/compiler/testData/codegen/box/traits/traitImplDiamond.kt
T
2020-10-01 17:49:02 +03:00

16 lines
177 B
Kotlin
Vendored

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()