Smart cast is performed now inside 'x as? Type ?: return' safe as / elvis combination #KT-10992 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-03-01 17:10:15 +03:00
parent c7f3a31517
commit 96a7febd09
4 changed files with 52 additions and 0 deletions
@@ -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");