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

17 lines
280 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
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"
}