Generate equals()/hashCode(): Fix hashCode() implementation
#KT-11638 Fixed
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ class A(val n: Int) : X() {
|
||||
|
||||
override fun hashCode(): Int{
|
||||
var result = super.hashCode()
|
||||
result += 31 * result + n
|
||||
result = 31 * result + n
|
||||
return result
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user