FIR2IR: support static fake overrides for fields (related to KT-53441)

#KT-54921 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-11-08 13:26:16 +01:00
committed by Space Team
parent 6979271998
commit c698d060c6
11 changed files with 162 additions and 43 deletions
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-53441
// MODULE: lib
// FILE: test/J.java
package test;
interface I {
// Not a String to avoid constant inlining
public static String[] OK = new String[]{"OK"};
}
public class J implements I {}
// MODULE: main(lib)
// FILE: k.kt
import test.J
fun box() = J.OK[0] // accessible by JVM rules as J.OK, but not I.OK