FIR DFA: add tests about smartcasts in/after try-catch-finally
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
2c8c47399a
commit
146036010c
@@ -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");
|
||||
|
||||
Generated
+10
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user