Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt
T
2021-09-08 19:56:38 +03:00

11 lines
249 B
Kotlin
Vendored

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