mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
Generate equals()/hashCode(): Fix hashCode() implementation
#KT-11638 Fixed
This commit is contained in:
@@ -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