K2: correctly set importedFromObjectOrStaticData for fields

#KT-59140 Fixed
#KT-58980 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-06-16 15:22:43 +02:00
committed by Space Team
parent 18206210cf
commit 8983e3a218
13 changed files with 226 additions and 28 deletions
@@ -0,0 +1,20 @@
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-59140
// FILE: pkg/Foo.java
package pkg;
abstract class CommonFoo {
public static final String BAR = "OK";
}
public class Foo extends CommonFoo {}
// FILE: test.kt
import pkg.Foo.BAR
fun box(): String {
return BAR
}