TrailingCommaVisitor: adapt to TrailingCommaContext
#KT-39123 Fixed
This commit is contained in:
+8
-1
@@ -1,7 +1,7 @@
|
||||
fun some(x: Any) {
|
||||
when (x) {
|
||||
is Number -> 0
|
||||
else -> 1
|
||||
else -> 1
|
||||
}
|
||||
when {
|
||||
}
|
||||
@@ -37,4 +37,11 @@ fun some(x: Any) {
|
||||
}
|
||||
}
|
||||
|
||||
val a = when {
|
||||
true && true && true -> {
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
|
||||
+7
@@ -37,4 +37,11 @@ fun some(x: Any) {
|
||||
}
|
||||
}
|
||||
|
||||
val a = when {
|
||||
true && true && true -> {
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
|
||||
Vendored
+7
@@ -43,4 +43,11 @@ else->1
|
||||
when {}
|
||||
}
|
||||
|
||||
val a = when {
|
||||
true && true && true -> {
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
|
||||
Reference in New Issue
Block a user