97cf62e291
This change affects only mode with IR f/o generator The old way of overridden computation with fir2ir f/o generator relied on the fact that fir2ir generator creates IR for all f/o and fills its caches. But with IR f/o generator enabled, we don't call fir2ir generator, so some caches are missing. And for this mode it's enough to acquire the symbol using the original declaration symbol and the lookup tag of the corresponding supertype Relates to KT-64202
34 lines
429 B
Kotlin
Vendored
34 lines
429 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// DUMP_IR
|
|
// DUMP_EXTERNAL_CLASS: JavaInterface
|
|
|
|
// FILE: base.kt
|
|
interface A {
|
|
fun foo()
|
|
fun bar()
|
|
}
|
|
|
|
interface B : A
|
|
|
|
interface C : A
|
|
|
|
interface D {
|
|
fun bar()
|
|
}
|
|
|
|
// FILE: JavaInterface.java
|
|
|
|
public interface JavaInterface extends B, C, D {
|
|
public void foo();
|
|
public void bar();
|
|
}
|
|
|
|
// FILE: main.kt
|
|
|
|
fun test(x: JavaInterface) {
|
|
x.foo()
|
|
x.bar()
|
|
}
|
|
|
|
fun box(): String = "OK"
|