Generate equals/hashCode(): Swap class literals in comparison
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ class A(val n: Int, val s: String) {
|
||||
|
||||
<caret>override fun equals(other: Any?): Boolean {
|
||||
if (this === other) return true
|
||||
if (other == null || other::class != this::class) return false
|
||||
if (other == null || this::class != other::class) return false
|
||||
|
||||
other as A
|
||||
|
||||
|
||||
Reference in New Issue
Block a user