NI: introduce new data flow analysis for try/catch (#KT-28370)
This commit is contained in:
+15
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user