c0152ccf0f
Unfortunately, it's not enough to know direct overriddens to correctly build fake overrides. This mean, that we need to know whole overridden tree during the process of building. It happens automatically for normal classes, but not for lazy classes, as their overriddens are built separatly. This commit enforces correct overrddens for lazy classes in hierarhies at the point, where they should be normally computed. ^KT-65236
32 lines
358 B
Kotlin
Vendored
32 lines
358 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ENABLE_IR_FAKE_OVERRIDE_GENERATION
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// FILE: J.java
|
|
|
|
interface J extends I {
|
|
|
|
}
|
|
|
|
// FILE: E.kt
|
|
|
|
interface II {
|
|
fun foo() {}
|
|
}
|
|
|
|
interface I : II {
|
|
}
|
|
|
|
abstract class C: I {
|
|
override abstract fun foo()
|
|
}
|
|
|
|
abstract class D : C(), J {}
|
|
|
|
class E : D() {
|
|
override fun foo() {}
|
|
}
|
|
|
|
fun foo(x : I) {
|
|
x.foo()
|
|
} |