Fix tests after disabling trailing comma
#KT-34744
This commit is contained in:
+2
-1
@@ -4,8 +4,9 @@ val x = listOf(1, 2, 3).joinToString(
|
||||
// comment2
|
||||
prefix = "= ",
|
||||
// comment3
|
||||
separator = " + ",
|
||||
separator = " + "
|
||||
// comment4
|
||||
,
|
||||
// comment1
|
||||
transform = Int::toString
|
||||
)
|
||||
+2
-4
@@ -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
|
||||
})
|
||||
}
|
||||
Vendored
+3
-6
@@ -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() {
|
||||
|
||||
Vendored
+3
-5
@@ -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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user