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