mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
12 lines
221 B
Kotlin
Vendored
12 lines
221 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
fun box(): String {
|
|
try {
|
|
throw Throwable("OK", null)
|
|
} catch (t: Throwable) {
|
|
if (t.cause != null) return "fail 1"
|
|
return t.message!!
|
|
}
|
|
|
|
return "fail 2"
|
|
}
|