Files
kotlin-fork/idea/testData/inspectionsLocal/arrayInDataClass/test.kt.after
T
2017-06-30 13:53:09 +03:00

20 lines
396 B
Plaintext
Vendored

import java.util.Arrays
// 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 (!Arrays.equals(a, other.a)) return false
return true
}
override fun hashCode(): Int {
return Arrays.hashCode(a)
}
}