Files
kotlin-fork/js/js.translator/testData/box/expression/when/whenAsExpression.kt
T

14 lines
200 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 487
package foo
fun box(): String {
val success = (when(1) {
2 -> 3
1 -> 1
else -> 5
} == 1)
return if (success) "OK" else "fail"
}