Files
kotlin-fork/idea/testData/inspectionsLocal/arrayInDataClass/test.kt.after
T
Mikhail Glukhikh 2473362373 ArrayInDataClass test: replace Arrays functions with Kotlin ones
This fixes relevant inspection test
2018-09-18 11:50:38 +03:00

18 lines
371 B
Plaintext
Vendored

// WITH_RUNTIME
data class A(val a: IntArray) {
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()
}
}