Files
kotlin-fork/native/native.tests/testData/codegen/serialization/serializedCatch.kt
T
2024-01-02 18:47:05 +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()