Smart casts to nothing after comparison with null

This commit is contained in:
Mikhail Glukhikh
2015-11-05 17:01:28 +03:00
committed by Mikhail Glukhikh
parent 981d471ebe
commit b556037915
7 changed files with 26 additions and 11 deletions
@@ -14625,6 +14625,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("notNullorNotNull.kt")
public void testNotNullorNotNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/notNullorNotNull.kt");
doTest(fileName);
}
@TestMetadata("ownerDeclaresBothModifies.kt")
public void testOwnerDeclaresBothModifies() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/ownerDeclaresBothModifies.kt");