Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/arrays/kt945.kt
T
Denis Zharkov 654411a0b0 Refactored tests using Array constructor:
Some moved to tests with stdlib
Some changed to use arrayOfNulls
2014-12-11 16:04:03 +03:00

10 lines
219 B
Kotlin

fun box() : String {
val data = Array<Array<Boolean>>(3) { Array<Boolean>(4, {false}) }
for(d in data) {
if(d.size() != 4) return "fail"
for(b in d) if (b) return "fail"
}
return "OK"
}