Files
kotlin/compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/tryInsideTry.kt
2018-06-19 17:09:31 +03:00

10 lines
248 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"
}