Generate equals/hashCode(): Swap class literals in comparison

This commit is contained in:
Alexey Sedunov
2017-06-28 15:40:53 +03:00
parent e3e4c447fa
commit 88968807b2
22 changed files with 24 additions and 24 deletions
@@ -5,7 +5,7 @@ class A(val n: Int) : X() {
<caret>override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other?.javaClass != javaClass) return false
if (javaClass != other?.javaClass) return false
if (!super.equals(other)) return false
other as A