mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
271 B
Kotlin
Vendored
13 lines
271 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// KJS_WITH_FULL_RUNTIME
|
|
// WITH_RUNTIME
|
|
|
|
val arr = intArrayOf()
|
|
|
|
fun box(): String {
|
|
val s = StringBuilder()
|
|
for ((index, x) in arr.withIndex()) {
|
|
return "Loop over empty array should not be executed"
|
|
}
|
|
return "OK"
|
|
} |