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
@@ -7,9 +7,7 @@ fun newFun(p1: Int, a: Int, p2: Int, p3: Int, b: Int){}
fun foo() {
newFun(
0, // 0
newFun(0, // 0
-1, 1, // 1
2, // 2
-2
)
-2)
@@ -7,12 +7,7 @@ fun newFun(p4: Int, p3: Int, p2: Int, p1: Int, p0: Int){}
fun foo() {
newFun(
/* 4 */
4, 3, 2, // 2
/* 1 */
1,
/* 0 */
0
)
newFun(/* 4 */ 4, 3, 2, // 2
/* 1 */ 1,
/* 0 */ 0)
}
@@ -8,8 +8,7 @@ interface X {
fun newFun(x: X, a: Int, b: Int){}
fun foo(x: X) {
newFun(
x/*receiver*/, 1, // pass 1
newFun(x/*receiver*/, 1, // pass 1
2 // pass 2
)
}
@@ -11,6 +11,5 @@ fun foo(x: X) {
x.newFun(
1,
2,
0
)
0)
}
@@ -8,9 +8,7 @@ interface X {
}
fun foo(x: X) {
x.<caret>newFun(
1,
x.<caret>newFun(1,
2,
3
)
3)
}
@@ -18,9 +18,7 @@ fun useSimple(s: Int): Int {
fun println(s: String) {}
fun useIt() {
val t = useSimple(
simple {
println("abc")
}
)
val t = useSimple(simple {
println("abc")
})
}
@@ -36,6 +36,5 @@ fun createHi(any: Any) = "Hi $any"
val unDeprecateMe = mutableListOf("Hello").apply {
addA(d(::createHi, 1 ) { // Run the quick fix from the IDE and watch it produce broken code.
println("Yo")
}, Unit
)
}, Unit)
}