Files
Alexey Sedunov a4d2f1e139 Implement Unwrap/Remove for try expressions
GitOrigin-RevId: 18ba1ee5e1ec8d5a294122a2260b90e54061277c
2013-06-21 18:32:09 +03:00

12 lines
150 B
Kotlin

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