Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideCatch.kt
T
2020-11-09 16:04:43 +03:00

10 lines
271 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: EXCEPTIONS_NOT_IMPLEMENTED
fun box(): String =
"O" +
try {
throw Exception("oops!")
}
catch (e: Exception) {
try { "K" } catch (e: Exception) { "2" }
}