Fail with NPE on explicit 'equals' call for null platform type value

This commit is contained in:
Dmitry Petrov
2017-09-08 16:49:42 +03:00
parent 4c2cfd3ea9
commit a3c4850f0d
9 changed files with 152 additions and 7 deletions
@@ -12388,6 +12388,18 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
doTest(fileName);
}
@TestMetadata("equalsNull_lv11.kt")
public void testEqualsNull_lv11() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/platformTypes/primitives/equalsNull_lv11.kt");
doTest(fileName);
}
@TestMetadata("equalsNull_lv12.kt")
public void testEqualsNull_lv12() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/platformTypes/primitives/equalsNull_lv12.kt");
doTest(fileName);
}
@TestMetadata("hashCode.kt")
public void testHashCode() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/platformTypes/primitives/hashCode.kt");