[FIR] Don't enhance Int and String Java final static fields
It's effectively a breaking change (^KT-62558) K2 assigns flexible type to all static fields (from Java) and, for example, `String? becomes String unlike K1. It affects IR signature generating. That's why signature dump is disabled for some tests. ^KT-57811 Fixed ^KT-61786 Fixed
This commit is contained in:
committed by
Space Team
parent
2d61b9a477
commit
498f2e534a
+6
@@ -3435,6 +3435,12 @@ public class DiagnosticCompilerTestFirTestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/nestedLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noEnhancementOnFinalStaticConstFields.kt")
|
||||
public void testNoEnhancementOnFinalStaticConstFields() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/noEnhancementOnFinalStaticConstFields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableIntegerLiteralType.kt")
|
||||
public void testNullableIntegerLiteralType() throws Exception {
|
||||
|
||||
+6
@@ -3435,6 +3435,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFirTestDataTestGenerated
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/nestedLambdas.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noEnhancementOnFinalStaticConstFields.kt")
|
||||
public void testNoEnhancementOnFinalStaticConstFields() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/inference/noEnhancementOnFinalStaticConstFields.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableIntegerLiteralType.kt")
|
||||
public void testNullableIntegerLiteralType() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user