[Test] Add a test covering changes in the evaluation semantics of safe call with smart cast in K2

Addition to other safe call tests that are already present in tests.

^KT-41034
This commit is contained in:
Anastasia.Nekrasova
2023-08-24 11:28:07 +03:00
committed by Space Team
parent 12b3fbd39a
commit aef6787e87
7 changed files with 60 additions and 0 deletions
@@ -28485,6 +28485,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
public void testSafeCallOnFlexibleTypeAlias() throws Exception {
runTest("compiler/testData/diagnostics/tests/safeCalls/safeCallOnFlexibleTypeAlias.kt");
}
@Test
@TestMetadata("safeCallWithSmartCast.kt")
public void testSafeCallWithSmartCast() throws Exception {
runTest("compiler/testData/diagnostics/tests/safeCalls/safeCallWithSmartCast.kt");
}
}
@Nested
@@ -28485,6 +28485,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
public void testSafeCallOnFlexibleTypeAlias() throws Exception {
runTest("compiler/testData/diagnostics/tests/safeCalls/safeCallOnFlexibleTypeAlias.kt");
}
@Test
@TestMetadata("safeCallWithSmartCast.kt")
public void testSafeCallWithSmartCast() throws Exception {
runTest("compiler/testData/diagnostics/tests/safeCalls/safeCallWithSmartCast.kt");
}
}
@Nested