Files
kotlin/compiler/testData/codegen/java8/box/longChainOfKotlinExtendsFromJavaWithDefault.kt
2016-03-02 15:47:38 +03:00

22 lines
266 B
Kotlin
Vendored

// FILE: Base.java
public interface Base {
default String foo() {
return "OK";
}
}
// FILE: derived.kt
interface K1 : Base
interface K2 : K1
interface K3 : K2
class C : K3 {
override fun foo() = super.foo()
}
fun box(): String = C().foo()