mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
11 lines
196 B
Kotlin
Vendored
11 lines
196 B
Kotlin
Vendored
fun box(): String {
|
|
try {
|
|
throw Throwable("OK", null)
|
|
} catch (t: Throwable) {
|
|
if (t.cause != null) return "fail 1"
|
|
return t.message!!
|
|
}
|
|
|
|
return "fail 2"
|
|
}
|