Files
kotlin/idea/testData/codeInsight/generate/equalsWithHashCode/dataClassHasArrayProperty.kt.after
2018-09-06 14:28:53 +03:00

16 lines
361 B
Plaintext
Vendored

data class A(val a: IntArray) {
<caret>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
}
override fun hashCode(): Int {
return a.contentHashCode()
}
}