Files
kotlin/compiler/testData/codegen/box/dataClasses/equals/genericarray.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
203 B
Kotlin
Vendored

data class A(val v: Array<Int>)
fun box() : String {
val myArray = arrayOf(0, 1, 2)
if(A(myArray) == A(arrayOf(0, 1, 2))) return "fail"
if(A(myArray) != A(myArray)) return "fail 2"
return "OK"
}