FIR2IR: support static fake overrides for fields (related to KT-53441)
#KT-54921 Fixed
This commit is contained in:
committed by
Space Team
parent
6979271998
commit
c698d060c6
+18
@@ -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
|
||||
Reference in New Issue
Block a user