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

11 lines
273 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class MyException(message: String): Exception(message)
fun box(): String =
"O" +
try {
try { throw Exception("oops!") } catch (mye: MyException) { "1" }
}
catch (e: Exception) {
"K"
}