Fix tests after disabling trailing comma
#KT-34744
This commit is contained in:
@@ -3,19 +3,15 @@ fun <caret>foo(a: Int, b: Int, d: Int, c: Int, e: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(
|
||||
1,
|
||||
foo(1,
|
||||
2,
|
||||
4,
|
||||
3,
|
||||
5
|
||||
)
|
||||
foo(
|
||||
1, 2,
|
||||
5)
|
||||
foo(1, 2,
|
||||
4,
|
||||
3,
|
||||
5
|
||||
)
|
||||
5)
|
||||
foo(
|
||||
1,
|
||||
2,
|
||||
|
||||
@@ -3,11 +3,7 @@ fun foo(x: Int, cl: () -> Int, y: Int): Int {
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
foo(
|
||||
1,
|
||||
{
|
||||
3
|
||||
},
|
||||
2
|
||||
)
|
||||
foo(1, {
|
||||
3
|
||||
}, 2)
|
||||
}
|
||||
+6
-12
@@ -1,24 +1,18 @@
|
||||
interface T {
|
||||
fun foo(
|
||||
a: Int = 1,
|
||||
b: String = "2"
|
||||
)
|
||||
fun foo(a: Int = 1,
|
||||
b: String = "2")
|
||||
}
|
||||
|
||||
open class A: T {
|
||||
override fun foo(
|
||||
a: Int,
|
||||
b: String
|
||||
) {
|
||||
override fun foo(a: Int,
|
||||
b: String) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
class B: A() {
|
||||
override fun foo(
|
||||
a: Int,
|
||||
b: String
|
||||
) {
|
||||
override fun foo(a: Int,
|
||||
b: String) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+2
-4
@@ -3,10 +3,8 @@ fun <caret>foo(b: Int, c: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(
|
||||
2,
|
||||
3
|
||||
)
|
||||
foo(2,
|
||||
3)
|
||||
foo(2, 3)
|
||||
foo(
|
||||
2,
|
||||
|
||||
+2
-4
@@ -3,10 +3,8 @@ fun <caret>foo(a: Int, c: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(
|
||||
1,
|
||||
3
|
||||
)
|
||||
foo(1,
|
||||
3)
|
||||
foo(1, 3)
|
||||
foo(
|
||||
1,
|
||||
|
||||
+2
-4
@@ -3,10 +3,8 @@ fun <caret>foo(a: Int, b: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(
|
||||
1,
|
||||
2
|
||||
)
|
||||
foo(1,
|
||||
2)
|
||||
foo(1, 2)
|
||||
foo(
|
||||
1,
|
||||
|
||||
@@ -3,15 +3,11 @@ fun <caret>foo(c: Int, b: Int, a: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(
|
||||
3,
|
||||
foo(3,
|
||||
2,
|
||||
1
|
||||
)
|
||||
foo(
|
||||
3, 2,
|
||||
1
|
||||
)
|
||||
1)
|
||||
foo(3, 2,
|
||||
1)
|
||||
foo(
|
||||
3,
|
||||
2,
|
||||
|
||||
Reference in New Issue
Block a user