Files
kotlin-fork/js/js.translator/testData/box/expression/when/whenAsExpression.kt
T
2018-09-12 09:49:25 +03:00

14 lines
201 B
Kotlin
Vendored

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