[FIR] Add test cases to prove resolution of backlog tickets
^KT-41728 Fixed ^KT-46586 Fixed ^KT-49696 Fixed ^KT-51160 Fixed ^KT-53308 Fixed
This commit is contained in:
+30
@@ -7260,6 +7260,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/reassignmentInTryCatchWithJumps.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reassignmentWithLambda.kt")
|
||||
public void testReassignmentWithLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/reassignmentWithLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToPropertyInitializer.kt")
|
||||
public void testReferenceToPropertyInitializer() throws Exception {
|
||||
@@ -7544,6 +7550,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
public void testReturnInDeadLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/returnInDeadLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastAfterDeadCode.kt")
|
||||
public void testSmartCastAfterDeadCode() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/smartCastAfterDeadCode.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -31216,6 +31228,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/complexConditionsWithExcl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexSealedContracts.kt")
|
||||
public void testComplexSealedContracts() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/complexSealedContracts.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataFlowInfoForArguments.kt")
|
||||
public void testDataFlowInfoForArguments() throws Exception {
|
||||
@@ -33217,6 +33235,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/capturedInClosureModifiedBefore.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("capturedInlineModifiedBefore.kt")
|
||||
public void testCapturedInlineModifiedBefore() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/capturedInlineModifiedBefore.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doWhileWithBreak.kt")
|
||||
public void testDoWhileWithBreak() throws Exception {
|
||||
@@ -33229,6 +33253,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/doWhileWithMiddleBreak.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityAndIdentity.kt")
|
||||
public void testEqualityAndIdentity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/equalityAndIdentity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forEach.kt")
|
||||
public void testForEach() throws Exception {
|
||||
|
||||
+30
@@ -7260,6 +7260,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/reassignmentInTryCatchWithJumps.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reassignmentWithLambda.kt")
|
||||
public void testReassignmentWithLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/reassignmentWithLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToPropertyInitializer.kt")
|
||||
public void testReferenceToPropertyInitializer() throws Exception {
|
||||
@@ -7544,6 +7550,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
public void testReturnInDeadLambda() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/returnInDeadLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("smartCastAfterDeadCode.kt")
|
||||
public void testSmartCastAfterDeadCode() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/controlFlowAnalysis/deadCode/smartCastAfterDeadCode.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -31216,6 +31228,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/complexConditionsWithExcl.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("complexSealedContracts.kt")
|
||||
public void testComplexSealedContracts() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/complexSealedContracts.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataFlowInfoForArguments.kt")
|
||||
public void testDataFlowInfoForArguments() throws Exception {
|
||||
@@ -33217,6 +33235,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/capturedInClosureModifiedBefore.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("capturedInlineModifiedBefore.kt")
|
||||
public void testCapturedInlineModifiedBefore() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/capturedInlineModifiedBefore.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doWhileWithBreak.kt")
|
||||
public void testDoWhileWithBreak() throws Exception {
|
||||
@@ -33229,6 +33253,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/doWhileWithMiddleBreak.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("equalityAndIdentity.kt")
|
||||
public void testEqualityAndIdentity() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/varnotnull/equalityAndIdentity.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forEach.kt")
|
||||
public void testForEach() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user