Smart cast is performed now inside 'x as? Type ?: return' safe as / elvis combination #KT-10992 Fixed
This commit is contained in:
@@ -16455,6 +16455,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("safeAs.kt")
|
||||
public void testSafeAs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/safeAs.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("shortIfExprNotNull.kt")
|
||||
public void testShortIfExprNotNull() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/shortIfExprNotNull.kt");
|
||||
|
||||
Reference in New Issue
Block a user