TrailingCommaVisitor: adapt to TrailingCommaContext

#KT-39123 Fixed
This commit is contained in:
Dmitry Gridin
2020-05-22 15:22:39 +07:00
parent 6d7c03b6fd
commit 86827dfc92
7 changed files with 99 additions and 54 deletions
+8 -1
View File
@@ -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
View File
@@ -37,4 +37,11 @@ fun some(x: Any) {
}
}
val a = when {
true && true && true -> {
}
else -> {
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH
+7
View File
@@ -43,4 +43,11 @@ else->1
when {}
}
val a = when {
true && true && true -> {
}
else -> {
}
}
// SET_FALSE: ALIGN_IN_COLUMNS_CASE_BRANCH