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
@@ -1,10 +1,8 @@
fun foo(i: Int) { }
fun test(
i: () -> Int = {
(1
+ 2)
}
) {
fun test(i: () -> Int = {
(1
+ 2)
}) {
foo(i())
}
@@ -1,10 +1,8 @@
fun foo(i: Int) { }
fun test(
i: () -> Int = {
(1 // abc
/*def*/ + 2)
}
) {
fun test(i: () -> Int = {
(1 // abc
/*def*/ + 2)
}) {
foo(i())
}
@@ -1,10 +1,8 @@
fun foo(i: Int) { }
fun test(
i: () -> Int = {
(1
+ 2 - 3)
}
) {
fun test(i: () -> Int = {
(1
+ 2 - 3)
}) {
foo(i())
}
@@ -1,10 +1,8 @@
fun foo(i: Int) { }
fun test(
i: () -> Int = {
(1 + 2
- 3)
}
) {
fun test(i: () -> Int = {
(1 + 2
- 3)
}) {
foo(i())
}
@@ -1,10 +1,7 @@
fun foo(
a: Int,
s: (Int) -> String = { a ->
"""c$a
fun foo(a: Int, s: (Int) -> String = { a ->
"""c$a
:${a + 1}d"""
}
): String {
}): String {
val x = """_${s(a)}_"""
val y = "_$a:${a + 1}d_"
val z = """_c$a:${a + 1}d_"""