Files
kotlin-fork/compiler/testData/codegen/box/traits/protectedFunDiamond.kt
T
2015-09-10 15:42:58 +03:00

16 lines
188 B
Kotlin
Vendored

interface A {
protected fun foo(): String
fun box() = foo()
}
interface B : A
interface C : A {
protected override fun foo() = "OK"
}
class D : B, C
fun box() = D().box()