Files
kotlin/idea/testData/codeInsight/unwrapAndRemove/removeFinally/finallyInBlock.kt
2013-06-21 19:32:09 +04:00

19 lines
252 B
Kotlin
Vendored

// OPTION: 1
fun foo(n: Int): Int {
try {
n / 0
}
catch (e: ArithmeticException) {
val m = -1
m
}
catch (e: Exception) {
-2
}
<caret>finally {
println("finally")
}
return 0
}