Files
Alexey Sedunov caa60cff16 Implement Unwrap/Remove for conditionals and loops
GitOrigin-RevId: 60c9a15f0070e71e0c84aa9a679099cb3b984d93
2013-06-21 17:18:08 +03:00

13 lines
172 B
Kotlin

// OPTION: 3
fun foo(n: Int): Int {
if (n > 0) {
println("> 0")
n + 10
} <caret>else {
println("<= 0")
n - 10
}
return n
}