Files
kotlin-fork/compiler/testData/codegen/box/jvm8/javaDefaults/defaultMethodOverride.kt
T
Juan Chen 4c04ad2371 FIR: Add bindings for dispatch receiver parameters
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
2019-12-27 10:13:44 +03:00

26 lines
360 B
Kotlin
Vendored

// SKIP_JDK6
// TARGET_BACKEND: JVM
// FILE: Simple.java
public interface Simple {
default String test(String s) {
return s + "Fail";
}
}
// FILE: main.kt
interface KInterface: Simple {
override fun test(s: String): String {
return s + "K"
}
}
class Test : KInterface {
}
fun box(): String {
return Test().test("O")
}