Fix tests after disabling trailing comma

#KT-34744
This commit is contained in:
Dmitry Gridin
2020-01-31 16:18:13 +07:00
parent 3fb34596ae
commit c34b417d0c
146 changed files with 612 additions and 945 deletions
@@ -4,8 +4,9 @@ val x = listOf(1, 2, 3).joinToString(
// comment2
prefix = "= ",
// comment3
separator = " + ",
separator = " + "
// comment4
,
// comment1
transform = Int::toString
)
@@ -2,8 +2,6 @@
// HIGHLIGHT: INFORMATION
fun test(list: List<Int>) {
println(
list.filter { it > 1 }
.filter { it > 2 }
)
println(list.filter { it > 1 }
.filter { it > 2 })
}
@@ -2,9 +2,7 @@
// HIGHLIGHT: INFORMATION
fun test() {
println(
runCatching {
println(runCatching {
/* lots of code*/
}
)
})
}
@@ -3,11 +3,9 @@
fun foo(x: Int) {}
fun bar() {
foo(
run {
foo(1)
foo(2)
1
}
)
foo(run {
foo(1)
foo(2)
1
})
}
@@ -3,12 +3,9 @@ fun test() {
operator fun get(a: Int, b: Int, fn: (i: Int) -> Int) : Int = 0
}
val test = Test()
test<caret>[
1, 2,
{ i ->
i
}
]
test<caret>[1, 2, { i ->
i
}]
}
fun withSuppression() {
@@ -3,9 +3,7 @@ fun test() {
operator fun get(fn: (i: Int) -> Int) : Int = 0
}
val test = Test()
test<caret>[
{ i ->
i
}
]
test<caret>[{ i ->
i
}]
}
@@ -1,7 +1,5 @@
fun test() {
Foo.Bar().bar(
{
true
}
)
Foo.Bar().bar({
true
})
}