NI: introduce new data flow analysis for try/catch (#KT-28370)

This commit is contained in:
Dmitriy Novozhilov
2019-02-17 12:42:54 +03:00
parent a236ad5686
commit 4a298d1413
11 changed files with 464 additions and 2 deletions
@@ -3266,16 +3266,31 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts.kt");
}
@TestMetadata("correctSmartcasts_after.kt")
public void testCorrectSmartcasts_after() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/correctSmartcasts_after.kt");
}
@TestMetadata("falseNegativeSmartcasts.kt")
public void testFalseNegativeSmartcasts() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts.kt");
}
@TestMetadata("falseNegativeSmartcasts_after.kt")
public void testFalseNegativeSmartcasts_after() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/falseNegativeSmartcasts_after.kt");
}
@TestMetadata("falsePositiveSmartcasts.kt")
public void testFalsePositiveSmartcasts() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts.kt");
}
@TestMetadata("falsePositiveSmartcasts_after.kt")
public void testFalsePositiveSmartcasts_after() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/falsePositiveSmartcasts_after.kt");
}
@TestMetadata("tryExpression.kt")
public void testTryExpression() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/tryCatch/tryExpression.kt");