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

11 lines
251 B
Kotlin
Vendored

data class A(val x: Array<Int>, val y: IntArray)
fun foo(x: Array<Int>, y: IntArray) = A(x, y)
fun box(): String {
val a = Array<Int>(0, {0})
val b = IntArray(0)
val (x, y) = foo(a, b)
return if (a == x && b == y) "OK" else "Fail"
}