Files
kotlin-fork/js/js.translator/testData/box/expression/if/ifElseAsExpressionWithThrow.kt
T
2018-06-19 17:09:31 +03:00

12 lines
205 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1109
package foo
fun box(): String {
try {
if (true) throw Exception() else "fail1"
}
catch (e: Exception) {
return "OK"
}
return "fail2"
}