Files
kotlin-fork/compiler/testData/codegen/box/controlStructures/kt2577.kt
T
2021-09-08 19:56:38 +03:00

14 lines
197 B
Kotlin
Vendored

fun foo(): Int {
try {
} finally {
try {
return 1
} catch (e: Throwable) {
return 2
}
}
}
fun box() = if (foo() == 1) "OK" else "Fail"