Files
kotlin-fork/compiler/testData/codegen/box/finally/kt3706.kt
T
2018-06-19 17:09:31 +03:00

16 lines
255 B
Kotlin
Vendored

fun f(): Int {
try {
return 0
}
finally {
try { // culprit ?? remove this try-catch and it works.
} catch (ignore: Exception) {
}
}
}
fun box(): String {
if (f() != 0) return "fail1"
return "OK"
}