Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt
T
2018-06-09 19:15:38 +03:00

9 lines
213 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
fun box(): String =
"O" +
try {
throw Exception("oops!")
}
catch (e: Exception) {
try { "K" } catch (e: Exception) { "2" }
}