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
@@ -0,0 +1,19 @@
data class Test1(
val stringArray: Array<String>,
val charArray: CharArray,
val booleanArray: BooleanArray,
val byteArray: ByteArray,
val shortArray: ShortArray,
val intArray: IntArray,
val longArray: LongArray,
val floatArray: FloatArray,
val doubleArray: DoubleArray
)
data class Test2<T>(
val genericArray: Array<T>
)
data class Test3(
val anyArrayN: Array<Any>?
)