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