[K2] Avoid type check for Kotlin's property in ConstUtils
When we check Java field for constant initializer, we could be asked to get and check the type of Kotlin's property that is used in this Java field. But there is no guarantee that the type resolve phase was finished and this type is available. So we just check for `const` modifier and skip type check. #KT-63752 Fixed #KT-62558 Obsolete #KT-61786 Declined
This commit is contained in:
+5
@@ -3846,6 +3846,11 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
runTest("compiler/testData/loadJava/compiledJava/static/StaticFinal.java");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticFinalConstTypes.java")
|
||||
public void testStaticFinalConstTypes() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledJava/static/StaticFinalConstTypes.java");
|
||||
}
|
||||
|
||||
@TestMetadata("StaticMembersFromParentClass.java")
|
||||
public void testStaticMembersFromParentClass() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledJava/static/StaticMembersFromParentClass.java");
|
||||
|
||||
Reference in New Issue
Block a user