Fix incorrect "senseless null in when" on nullable type

This commit is contained in:
Alexander Udalov
2014-10-17 13:21:33 +04:00
parent fe59dc27b3
commit 63366042ed
4 changed files with 56 additions and 1 deletions
@@ -7031,6 +7031,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("noSenselessNullOnNullableType.kt")
public void testNoSenselessNullOnNullableType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/noSenselessNullOnNullableType.kt");
doTest(fileName);
}
@TestMetadata("noUnnecessaryNotNullAssertionOnErrorType.kt")
public void testNoUnnecessaryNotNullAssertionOnErrorType() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/noUnnecessaryNotNullAssertionOnErrorType.kt");