Don't generate implicit overrides delegating to Java defaults
#KT-40920 Fixed
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// !JVM_DEFAULT_MODE: disable
|
||||
// JVM_TARGET: 1.8
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FILE: JBase.java
|
||||
|
||||
public interface JBase extends Base {
|
||||
default String test() {
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
interface Base {
|
||||
fun test(): String = "Base"
|
||||
}
|
||||
|
||||
interface LeftBase : Base
|
||||
interface Right : JBase
|
||||
|
||||
interface Child : LeftBase, Right
|
||||
|
||||
|
||||
fun box(): String {
|
||||
return object : Child {}.test()
|
||||
}
|
||||
Reference in New Issue
Block a user