Formatter: support "else on new line" option
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
fun f() {
|
||||
if (true) {
|
||||
}
|
||||
else if (true) {
|
||||
}
|
||||
else {
|
||||
}
|
||||
|
||||
|
||||
if (true) {
|
||||
} else if (true) {
|
||||
} else {
|
||||
}
|
||||
|
||||
if (a) 3 else 4
|
||||
|
||||
if (a) 5
|
||||
else 5
|
||||
|
||||
if (a) 5
|
||||
else
|
||||
5
|
||||
|
||||
if (a)
|
||||
5
|
||||
else
|
||||
5
|
||||
}
|
||||
|
||||
// SET_TRUE: ELSE_ON_NEW_LINE
|
||||
Reference in New Issue
Block a user