Implement Unwrap/Remove for conditionals and loops

This commit is contained in:
Alexey Sedunov
2013-06-18 17:21:50 +04:00
parent fa01d59ef8
commit 8964e0e152
28 changed files with 618 additions and 2 deletions

View File

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