Generate equals()/hashCode(): Fix hashCode() implementation

#KT-11638 Fixed
This commit is contained in:
Alexey Sedunov
2016-03-28 18:21:57 +03:00
parent 768da05ba9
commit cbb6f7ed63
10 changed files with 16 additions and 15 deletions
@@ -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
}
}