Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt5953.kt
T
2020-11-09 16:04:43 +03:00

17 lines
318 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: UNIT_ISSUES
// KJS_WITH_FULL_RUNTIME
// 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
}