Files
kotlin-fork/backend.native/tests/serialization/catch.kt
T
2017-11-15 12:49:42 +03:00

14 lines
280 B
Kotlin

inline fun foo() {
try {
try {
throw Exception("XXX")
} catch (e: Throwable) {
println("Gotcha1: ${e.message}")
throw Exception("YYY")
}
} catch (e: Throwable) {
println("Gotcha2: ${e.message}")
}
}