FIR DFA: add tests about smartcasts in/after try-catch-finally

This commit is contained in:
Jinseong Jeon
2020-10-12 22:45:31 -07:00
committed by Dmitriy Novozhilov
parent 2c8c47399a
commit 146036010c
9 changed files with 137 additions and 0 deletions
@@ -21992,6 +21992,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/basicOn.kt");
}
@TestMetadata("castInTryWithCatch.kt")
public void testCastInTryWithCatch() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/castInTryWithCatch.kt");
}
@TestMetadata("castInTryWithoutCatch.kt")
public void testCastInTryWithoutCatch() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/castInTryWithoutCatch.kt");
}
@TestMetadata("impossible.kt")
public void testImpossible() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/impossible.kt");
@@ -21917,6 +21917,16 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/basicOn.kt");
}
@TestMetadata("castInTryWithCatch.kt")
public void testCastInTryWithCatch() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/castInTryWithCatch.kt");
}
@TestMetadata("castInTryWithoutCatch.kt")
public void testCastInTryWithoutCatch() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/castInTryWithoutCatch.kt");
}
@TestMetadata("impossible.kt")
public void testImpossible() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/castchecks/impossible.kt");