Files
kotlin/compiler/testData/codegen/box/dataClasses/equals/intarray.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

8 lines
207 B
Kotlin
Vendored

data class A(val v: IntArray)
fun box() : String {
val myArray = intArrayOf(0, 1, 2)
if(A(myArray) == A(intArrayOf(0, 1, 2))) return "fail"
if(A(myArray) != A(myArray)) return "fail 2"
return "OK"
}