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

12 lines
150 B
Kotlin
Vendored

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