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

View File

@@ -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
}
}