New formatter option: Align in columns 'case' branches

This commit is contained in:
Andrey Ponomarev
2013-02-20 18:08:31 +01:00
committed by Nikolay Krasko
parent 6a7e72bfc5
commit c91cd9b962
8 changed files with 52 additions and 15 deletions
+5 -3
View File
@@ -1,6 +1,8 @@
fun some(x : Any) {
when (x) {
is Int -> 0
else -> 1
is Number -> 0
else->1
}
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
+4 -2
View File
@@ -1,6 +1,8 @@
fun some(x: Any) {
when (x) {
is Int -> 0
is Number -> 0
else -> 1
}
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
@@ -0,0 +1,8 @@
fun some(x: Any) {
when (x) {
is Number -> 0
else -> 1
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH