24 lines
395 B
Kotlin
Vendored
24 lines
395 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// EXPECTED_REACHABLE_NODES: 1109
|
|
package foo
|
|
|
|
fun box(): String {
|
|
|
|
try {
|
|
(when (1) {
|
|
3 -> {
|
|
3
|
|
}
|
|
1 -> {
|
|
throw Exception()
|
|
}
|
|
else -> {
|
|
return "fail1"
|
|
}
|
|
})
|
|
} catch (e: Exception) {
|
|
return "OK"
|
|
}
|
|
|
|
return "fail2"
|
|
} |