Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt5953.kt
T
2018-06-09 19:15:38 +03:00

15 lines
250 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box(): String {
val res = (1..3).map { it ->
if (it == 1)
2
};
var result = ""
for (i in res)
result += " "
return if (result == " ") "OK" else result
}