Fixed KT-5396 J2K: properly format "else if" on conversion
#KT-5396 Fixed
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user