Files
kotlin-fork/compiler/testData/codegen/box/serialization/serializedCatch.kt
T
2024-02-26 13:38:49 +00:00

20 lines
343 B
Kotlin
Vendored

// MODULE: lib
// FILE: lib.kt
inline fun foo(): String {
try {
try {
throw Exception("O")
} catch (e: Throwable) {
throw Exception("${e.message}K")
}
} catch (e: Throwable) {
return e.message!!
}
return "FAIL"
}
// MODULE: main(lib)
// FILE: main.kt
fun box() = foo()