Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/finally/kt3706.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +03:00

16 lines
255 B
Kotlin

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"
}