Files
kotlin/compiler/testData/codegen/box/dataClasses/hashCode/array.kt
Alexander Udalov 20e36438e2 Move some tests from boxWithStdlib/ to box/
Move those tests which do not require neither stdlib nor reflect
2016-03-09 10:25:38 +03:00

7 lines
223 B
Kotlin
Vendored

data class A(val a: IntArray, var b: Array<String>)
fun box() : String {
if( A(intArrayOf(1,2,3),arrayOf("239")).hashCode() != 31*java.util.Arrays.hashCode(intArrayOf(0,1,2)) + "239".hashCode()) "fail"
return "OK"
}