Fixed if-statements with else branch handling

This commit is contained in:
Valentin Kipyatkov
2014-12-17 19:33:34 +03:00
parent 3db51cfcd8
commit b1372f0d9e
6 changed files with 38 additions and 0 deletions
@@ -0,0 +1,5 @@
fun foo() {
<caret>if (a) {
if (b) foo() else bar()
}
}
@@ -0,0 +1,3 @@
fun foo() {
if (a) <caret>if (b) foo() else bar()
}
@@ -0,0 +1,8 @@
fun foo() {
<caret>if (a) {
if (b) foo()
}
else {
bar()
}
}
@@ -0,0 +1,7 @@
fun foo() {
if (a) {<caret> if (b) foo()
}
else {
bar()
}
}