Files
kotlin/compiler/testData/codegen/java8/box/longChainOfKotlinExtendsFromJavaWithDefault.kt
Mikhael Bogdanov a4d81ba206 Switch DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET according to LL
(cherry picked from commit a547019)
2017-11-17 16:43:32 +01:00

22 lines
284 B
Kotlin
Vendored

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