FIR: Load final static constant Java fields as non-nullable

This commit is contained in:
Denis.Zharkov
2021-11-17 19:44:31 +03:00
committed by teamcityserver
parent dba04bcf80
commit 46217318c0
14 changed files with 113 additions and 24 deletions
@@ -1,5 +1,5 @@
FILE: main.kt
public final fun test(): R|kotlin/Unit| {
lval project: R|ft<kotlin/String, kotlin/String?>| = Q|PlatformDataKeys|.R|/CommonDataKeys.PROJECT|
lval project: R|kotlin/String| = Q|PlatformDataKeys|.R|/CommonDataKeys.PROJECT|
lval member: R|ft<kotlin/String, kotlin/String?>| = R|/PlatformDataKeys.PlatformDataKeys|().R|/CommonDataKeys.MEMBER|
}
@@ -18080,6 +18080,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/j+k/types/arrayList.kt");
}
@Test
@TestMetadata("constantStaticStringField.kt")
public void testConstantStaticStringField() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/types/constantStaticStringField.kt");
}
@Test
@TestMetadata("notNullTypeParameterWithKotlinNullable.kt")
public void testNotNullTypeParameterWithKotlinNullable() throws Exception {
@@ -18080,6 +18080,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/j+k/types/arrayList.kt");
}
@Test
@TestMetadata("constantStaticStringField.kt")
public void testConstantStaticStringField() throws Exception {
runTest("compiler/testData/diagnostics/tests/j+k/types/constantStaticStringField.kt");
}
@Test
@TestMetadata("notNullTypeParameterWithKotlinNullable.kt")
public void testNotNullTypeParameterWithKotlinNullable() throws Exception {