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

12 lines
205 B
Kotlin
Vendored

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