[K2] Properly report diagnostics on const properties with Java usages

#KT-63752
#KT-59894
#KT-61920 Fixed
This commit is contained in:
Ivan Kylchik
2023-11-21 15:15:58 +01:00
committed by Space Team
parent 9f64edb31e
commit 1125891a13
18 changed files with 255 additions and 83 deletions
@@ -0,0 +1,10 @@
// FIR_IDENTICAL
// TARGET_BACKEND: JVM
// FILE: Foo.java
public interface Foo {
public static final long A = System.currentTimeMillis();
}
// FILE: test.kt
const val b = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>Foo.A<!>