12 lines
197 B
Kotlin
Vendored
12 lines
197 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"
|
|
}
|