New formatter option: Align in columns 'case' branches
This commit is contained in:
committed by
Nikolay Krasko
parent
6a7e72bfc5
commit
c91cd9b962
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user