Files
kotlin-fork/compiler/testData/codegen/box/traits/traitImplDiamond.kt
T
2016-11-09 21:41:12 +03:00

19 lines
273 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
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()