[FIR] Adding a test case to show resolution of KT-29559 in K2

This commit is contained in:
Brian Norman
2024-03-01 09:27:24 -06:00
committed by Space Team
parent 2de0e4b8d2
commit 8320668485
9 changed files with 136 additions and 0 deletions
@@ -1089,6 +1089,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/phantomIntersections.kt");
}
@Test
@TestMetadata("postfixIncSmartCast.kt")
public void testPostfixIncSmartCast() {
runTest("compiler/testData/diagnostics/tests/postfixIncSmartCast.kt");
}
@Test
@TestMetadata("prefixIncReturnType.kt")
public void testPrefixIncReturnType() {
@@ -35518,6 +35524,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/smartCasts/incDecToNull.kt");
}
@Test
@TestMetadata("incrementAfterAssignment.kt")
public void testIncrementAfterAssignment() {
runTest("compiler/testData/diagnostics/tests/smartCasts/incrementAfterAssignment.kt");
}
@Test
@TestMetadata("kt10232.kt")
public void testKt10232() {
@@ -1089,6 +1089,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/phantomIntersections.kt");
}
@Test
@TestMetadata("postfixIncSmartCast.kt")
public void testPostfixIncSmartCast() {
runTest("compiler/testData/diagnostics/tests/postfixIncSmartCast.kt");
}
@Test
@TestMetadata("prefixIncReturnType.kt")
public void testPrefixIncReturnType() {
@@ -35518,6 +35524,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/smartCasts/incDecToNull.kt");
}
@Test
@TestMetadata("incrementAfterAssignment.kt")
public void testIncrementAfterAssignment() {
runTest("compiler/testData/diagnostics/tests/smartCasts/incrementAfterAssignment.kt");
}
@Test
@TestMetadata("kt10232.kt")
public void testKt10232() {