Files
Pavel Kirpichenkov 63d99e08a4 [Kotlin] Implement K2 'array in data class' inspection
KTIJ-28464

GitOrigin-RevId: 63c220f1e93328f16912d5b64dd1686e46967d5a
2024-07-11 11:41:35 +00:00

19 lines
371 B
Plaintext

// WITH_STDLIB
data class A(val a: IntArray) {
override fun hashCode(): Int {
return a.contentHashCode()
}
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as A
if (!a.contentEquals(other.a)) return false
return true
}
}