Fix toString and hashCode for array members of data classes

Generate them as special intrinsics that would be mapped to proper
platform-specific calls by BEs.

 #KT-16945 Fixed
This commit is contained in:
Dmitry Petrov
2017-05-25 17:42:13 +03:00
parent 1420926a9b
commit 30182c38ce
6 changed files with 705 additions and 8 deletions
@@ -74,6 +74,12 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
doTest(fileName);
}
@TestMetadata("dataClassWithArrayMembers.kt")
public void testDataClassWithArrayMembers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/dataClassWithArrayMembers.kt");
doTest(fileName);
}
@TestMetadata("dataClasses.kt")
public void testDataClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/classes/dataClasses.kt");