[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:
committed by
Space Team
parent
12b3fbd39a
commit
aef6787e87
+6
@@ -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
|
||||
|
||||
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user