Files
kotlin-fork/idea/testData/codeInsight/unwrapAndRemove/removeCatch/catch.kt
T
2013-06-21 19:32:09 +04:00

16 lines
201 B
Kotlin

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