Files
Jaebaek Seo 86c498f7c5 Add K2 EqualsOrHashCodeInspection
^KTIJ-22907 fixed

GitOrigin-RevId: 7e6b347b06eb17b9ca2c4f3ecb997ed8fbb2ef00
2022-11-15 15:53:29 +00:00

11 lines
271 B
Plaintext

class WithConstructor(x: Int, s: String) {
val x: Int = 0
val s: String = ""
override fun equals(other: Any?): Boolean = false
override fun hashCode(): Int {
var result = x
result = 31 * result + s.hashCode()
return result
}
}