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
@@ -0,0 +1,8 @@
// OPTION: 1
fun foo(n: Int): Int {
return if (n > 0) {
n + 10
} <caret>else {
n - 10
}
}
@@ -0,0 +1,6 @@
// OPTION: 1
fun foo(n: Int): Int {
return if (n > 0) {
n + 10
<caret> }
}