mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
196 B
Kotlin
Vendored
13 lines
196 B
Kotlin
Vendored
fun foo(): Int {
|
|
try {
|
|
} finally {
|
|
try {
|
|
return 1
|
|
} catch (e: Throwable) {
|
|
return 2
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box() = if (foo() == 1) "OK" else "Fail"
|