Fix NPE in data class 'equals' codegen

Do not perform the optimization from 0a11385006 for data class
properties of nullable types
This commit is contained in:
Alexander Udalov
2018-04-12 19:47:49 +02:00
parent 579b773388
commit 30b9caeae6
6 changed files with 47 additions and 1 deletions
@@ -7230,6 +7230,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("null.kt")
public void testNull() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/dataClasses/equals/null.kt");
doTest(fileName);
}
@TestMetadata("nullother.kt")
public void testNullother() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/dataClasses/equals/nullother.kt");