Fixed KT-5396 J2K: properly format "else if" on conversion

#KT-5396 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-04 21:35:25 +04:00
parent 88235c3eb2
commit e84c753e99
4 changed files with 38 additions and 1 deletions
@@ -0,0 +1,16 @@
//method
void foo() {
if (a)
System.out.println("a")
else if (b)
System.out.println("b")
else
System.out.println("else")
if (c) {
System.out.println("c")
}
else if (d) {
System.out.println("d")
}
}
@@ -0,0 +1,14 @@
fun foo() {
if (a)
System.out.println("a")
else if (b)
System.out.println("b")
else
System.out.println("else")
if (c) {
System.out.println("c")
} else if (d) {
System.out.println("d")
}
}