Revert changes to data class equals/hashCode (KT-12330)

This looked like a small and useful change, but caused so many issues
(KT-24474, KT-24790, 30b9caea, and another unreported one -- see the
test update in this commit) that it didn't pay off after all. The
optimization is not that critical for now, as it's only relevant for
data classes where component types have trivial equals/hashCode
implementation, which is not very often

 #KT-12330 Declined
This commit is contained in:
Alexander Udalov
2018-06-18 12:23:28 +02:00
parent 21ca06dace
commit 863639c9ab
8 changed files with 21 additions and 60 deletions
@@ -1,4 +0,0 @@
data class D(val x: List<String>)
// 1 INVOKEVIRTUAL java/lang/Object.hashCode
// 1 INVOKEVIRTUAL java/lang/Object.equals