Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/kt769.kt
T
2021-10-02 06:14:35 +00:00

19 lines
378 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
package w_range
fun box() : String {
var i = 0
when (i) {
1 -> i--
else -> { i = 2 }
}
System.out?.println(i)
return "OK"
}