Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt15196.kt
T
2019-11-19 11:00:09 +03:00

13 lines
266 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME
fun foo() {
val array = Array(0, { IntArray(0) } )
array.forEach { println(it.asList()) }
}
fun box(): String {
foo() // just to be sure, that no exception happens
return "OK"
}