Fix tests after implementing trailing comma in formatter

#KT-34744
This commit is contained in:
Dmitry Gridin
2020-01-14 20:56:48 +07:00
parent d98794479d
commit d06787886a
112 changed files with 598 additions and 371 deletions
@@ -7,7 +7,9 @@ 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,7 +7,12 @@ 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,7 +8,8 @@ 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,5 +11,6 @@ fun foo(x: X) {
x.newFun(
1,
2,
0)
0
)
}
@@ -8,7 +8,9 @@ interface X {
}
fun foo(x: X) {
x.<caret>newFun(1,
x.<caret>newFun(
1,
2,
3)
3
)
}
@@ -18,7 +18,9 @@ fun useSimple(s: Int): Int {
fun println(s: String) {}
fun useIt() {
val t = useSimple(simple {
println("abc")
})
val t = useSimple(
simple {
println("abc")
}
)
}
@@ -36,5 +36,6 @@ 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
)
}