KT-12330 Improve bytecode for data class equals/hashCode methods
- Do not longer call hashCode on java/lang/Object but do this on statically checked type. - Do not longer call Intrinsics.areEqual but use directly equals method on statically checked type. Fix of https://youtrack.jetbrains.com/issue/KT-12330
This commit is contained in:
committed by
Alexander Udalov
parent
e6baf0296d
commit
0a11385006
@@ -0,0 +1,4 @@
|
||||
data class D(val x: List<String>)
|
||||
|
||||
// 1 INVOKEVIRTUAL java/lang/Object.hashCode
|
||||
// 1 INVOKEVIRTUAL java/lang/Object.equals
|
||||
Reference in New Issue
Block a user