Move call-site trailing comma to registry

#KT-34744
This commit is contained in:
Dmitry Gridin
2020-02-03 16:44:13 +07:00
parent c34b417d0c
commit b5d0956a5e
45 changed files with 5022 additions and 1422 deletions
@@ -3,7 +3,7 @@
@Anno([1])
fun a() = Unit
@Anno([1])
@Anno([1, ])
fun a() = Unit
@Anno([1
@@ -22,7 +22,7 @@ fun a() = Unit
@Anno([1, 2])
fun a() = Unit
@Anno([1, 2])
@Anno([1, 2, ])
fun a() = Unit
@Anno([1, 2
@@ -41,7 +41,7 @@ fun a() = Unit
@Anno([1, 2, 2])
fun a() = Unit
@Anno([1, 2, 2])
@Anno([1, 2, 2, ])
fun a() = Unit
@Anno(["1"
@@ -74,8 +74,8 @@ fun a() = Unit
/*
*/
// d
1,/*
*//*
1/*
*/,/*
*/
])
fun a() = Unit
@@ -91,8 +91,8 @@ fun a() = Unit
@Anno([
1,
2,/*
*//*
2/*
*/,/*
*/
])
fun a() = Unit
@@ -3,182 +3,123 @@
@Anno([1])
fun a() = Unit
@Anno([1])
@Anno([1, ])
fun a() = Unit
@Anno(
[
1,
],
)
@Anno([1
])
fun a() = Unit
@Anno(
[
1,
],
)
@Anno([
1,
])
fun a() = Unit
@Anno(
[
1,
],
)
@Anno([
1])
fun a() = Unit
@Anno([1, 2])
fun a() = Unit
@Anno([1, 2])
@Anno([1, 2, ])
fun a() = Unit
@Anno(
[
1, 2,
],
)
@Anno([1, 2
])
fun a() = Unit
@Anno(
[
1, 2,
],
)
@Anno([
1, 2,
])
fun a() = Unit
@Anno(
[
1, 2,
],
)
@Anno([
1, 2])
fun a() = Unit
@Anno([1, 2, 2])
fun a() = Unit
@Anno([1, 2, 2])
@Anno([1, 2, 2, ])
fun a() = Unit
@Anno(
[
"1",
],
)
@Anno(["1"
])
fun a() = Unit
@Anno(
[
1,
],
)
@Anno([
1,
])
fun a() = Unit
@Anno(
[
1, 2, 2,
],
)
@Anno([
1, 2, 2])
fun a() = Unit
@Anno(
[
1,/*
*/
],
)
@Anno([1/*
*/])
fun a() = Unit
@Anno(
[
1, //dw
],
)
@Anno([
1, //dw
])
fun a() = Unit
@Anno(
[
1, // ds
],
)
@Anno([1 // ds
])
fun a() = Unit
@Anno(
[
@Anno([
/*
*/
// d
1,/*
*//*
// d
1/*
*/,/*
*/
],
)
])
fun a() = Unit
@Anno(
[
/*
*/
1,
],
)
@Anno([
/*
*/ 1])
fun a() = Unit
@Anno(
[
1,/*
@Anno([1/*
*/, 2])
fun a() = Unit
@Anno([
1,
2/*
*/,/*
*/
2,
],
)
])
fun a() = Unit
@Anno(
[
1,
2,/*
*//*
*/
],
)
@Anno([/*
*/1, 2
])
fun a() = Unit
@Anno(
[
/*
*/
1, 2,
],
)
@Anno(["1"
])
fun a() = Unit
@Anno(
[
"1",
],
)
@Anno([
1,
])
fun a() = Unit
@Anno(
[
1,
],
)
fun a() = Unit
@Anno(
[
1,
2, /*
*/
],
)
@Anno([
1, 2 /*
*/])
fun a() = Unit
@Component(
modules = [
AppModule::class, DataModule::class,
DomainModule::class,
DomainModule::class
],
)
fun b() = Unit
@@ -0,0 +1,125 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
@Anno([1])
fun a() = Unit
@Anno([1])
fun a() = Unit
@Anno([1
])
fun a() = Unit
@Anno([
1,
])
fun a() = Unit
@Anno([
1])
fun a() = Unit
@Anno([1, 2])
fun a() = Unit
@Anno([1, 2])
fun a() = Unit
@Anno([1, 2
])
fun a() = Unit
@Anno([
1, 2,
])
fun a() = Unit
@Anno([
1, 2])
fun a() = Unit
@Anno([1, 2, 2])
fun a() = Unit
@Anno([1, 2, 2])
fun a() = Unit
@Anno(["1"
])
fun a() = Unit
@Anno([
1,
])
fun a() = Unit
@Anno([
1, 2, 2])
fun a() = Unit
@Anno([1/*
*/])
fun a() = Unit
@Anno([
1, //dw
])
fun a() = Unit
@Anno([1 // ds
])
fun a() = Unit
@Anno([
/*
*/
// d
1,/*
*//*
*/
])
fun a() = Unit
@Anno([
/*
*/ 1])
fun a() = Unit
@Anno([1/*
*/, 2])
fun a() = Unit
@Anno([
1,
2,/*
*//*
*/
])
fun a() = Unit
@Anno([/*
*/1, 2
])
fun a() = Unit
@Anno(["1"
])
fun a() = Unit
@Anno([
1,
])
fun a() = Unit
@Anno([
1, 2 /*
*/])
fun a() = Unit
@Component(
modules = [
AppModule::class, DataModule::class,
DomainModule::class
],
)
fun b() = Unit
@@ -0,0 +1,184 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
@Anno([1])
fun a() = Unit
@Anno([1])
fun a() = Unit
@Anno(
[
1,
],
)
fun a() = Unit
@Anno(
[
1,
],
)
fun a() = Unit
@Anno(
[
1,
],
)
fun a() = Unit
@Anno([1, 2])
fun a() = Unit
@Anno([1, 2])
fun a() = Unit
@Anno(
[
1, 2,
],
)
fun a() = Unit
@Anno(
[
1, 2,
],
)
fun a() = Unit
@Anno(
[
1, 2,
],
)
fun a() = Unit
@Anno([1, 2, 2])
fun a() = Unit
@Anno([1, 2, 2])
fun a() = Unit
@Anno(
[
"1",
],
)
fun a() = Unit
@Anno(
[
1,
],
)
fun a() = Unit
@Anno(
[
1, 2, 2,
],
)
fun a() = Unit
@Anno(
[
1,/*
*/
],
)
fun a() = Unit
@Anno(
[
1, //dw
],
)
fun a() = Unit
@Anno(
[
1, // ds
],
)
fun a() = Unit
@Anno(
[
/*
*/
// d
1,/*
*//*
*/
],
)
fun a() = Unit
@Anno(
[
/*
*/
1,
],
)
fun a() = Unit
@Anno(
[
1,/*
*/
2,
],
)
fun a() = Unit
@Anno(
[
1,
2,/*
*//*
*/
],
)
fun a() = Unit
@Anno(
[
/*
*/
1, 2,
],
)
fun a() = Unit
@Anno(
[
"1",
],
)
fun a() = Unit
@Anno(
[
1,
],
)
fun a() = Unit
@Anno(
[
1,
2, /*
*/
],
)
fun a() = Unit
@Component(
modules = [
AppModule::class, DataModule::class,
DomainModule::class,
],
)
fun b() = Unit
@@ -24,14 +24,14 @@ enum class Enum5 {
enum class Enum6(val a: Int) {
A(
1,
1
),
B,
}
enum class Enum7(val a: Int) {
A(
1,
1
),
B,
;
@@ -39,7 +39,7 @@ enum class Enum7(val a: Int) {
enum class Enum8(val a: Int) {
A(
1,
1
),
B;
}
@@ -25,7 +25,7 @@ fun foo() {
foofoo
]
testtest[foofoo]
testtest[foofoo, ]
testtest[foofoo, testtest[testtest[foofoo]]]
@@ -34,9 +34,9 @@ fun foo() {
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], testsa]
testtest[foofoo, testtest[testtest[foofoo, ]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo, ]], testsa]
useCallable["A", Callable { println["Hello world"] }]
@@ -48,7 +48,7 @@ fun foo() {
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }, ]
useCallable[
Callable {
@@ -76,7 +76,7 @@ fun foo() {
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }, ]
useCallable[
{ println["Hello world"] },
@@ -104,7 +104,7 @@ fun foo() {
override fun call() {
println["Hello world"]
}
}, foo[0]]
}, foo[0, ]]
useCallable[object : Callable<Unit> {
override fun call() {
@@ -112,13 +112,11 @@ fun foo() {
}
}]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}, ]
useCallable[object : Callable<Unit> {
override fun call() {
@@ -173,7 +171,7 @@ fun foo() {
foofoo
]
testtest[foofoo/**/]
testtest[foofoo,/**/]
testtest[foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
@@ -186,7 +184,7 @@ fun foo() {
foofoo
]
testtest[foofoo/**/]
testtest[foofoo,/**/]
testtest[
foofoo, fososos,/*
@@ -194,16 +192,16 @@ fun foo() {
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo, ]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/* */, /**/testsa]
testtest[foofoo, testtest[testtest[foofoo, ]]/* */, /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/*
testtest[foofoo, testtest[testtest[foofoo, ]]/*
*/, testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, seee, testtest[testtest[foofoo, ]], /**/testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], /*
testtest[foofoo, seee, testtest[testtest[foofoo, ]], /*
*/testsa]
useCallable["B", "C", Callable {
@@ -1,37 +1,31 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest[foofoo, foofoo, foofoo,
foofoo, bar]
testtest[
foofoo, foofoo, foofoo,
foofoo, bar,
foofoo, foofoo, foofoo, foofoo, bar
]
testtest[foofoo, foofoo, foofoo, foofoo, bar
]
testtest[foofoo, foofoo, foofoo, foofoo,
bar
]
testtest[foofoo
]
testtest[
foofoo, foofoo, foofoo, foofoo, bar,
]
foofoo]
testtest[
foofoo, foofoo, foofoo, foofoo, bar,
foofoo
]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar,
]
testtest[
foofoo,
]
testtest[
foofoo,
]
testtest[
foofoo,
]
testtest[foofoo]
testtest[foofoo, ]
testtest[foofoo, testtest[testtest[foofoo]]]
@@ -40,25 +34,21 @@ fun foo() {
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], testsa]
testtest[foofoo, testtest[testtest[foofoo, ]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo, ]], testsa]
useCallable["A", Callable { println["Hello world"] }]
useCallable[
"B", "C",
Callable {
println["Hello world"]
},
Callable {
println["Hello world"]
},
]
useCallable["B", "C", Callable {
println["Hello world"]
}, Callable {
println["Hello world"]
}]
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }, ]
useCallable[
Callable {
@@ -66,8 +56,7 @@ fun foo() {
},
]
useCallable[
Callable { println["Hello world"] },
useCallable[Callable { println["Hello world"] }
]
useCallable[Callable { println["Hello world"] }]{
@@ -75,96 +64,72 @@ fun foo() {
}
useCallable[
Callable { println["Hello world"] },
]
Callable { println["Hello world"] }]
useCallable["A", { println["Hello world"] }]
useCallable[
"B", "C",
{
println["Hello world"]
},
{
println["Hello world"]
},
]
useCallable["B", "C", {
println["Hello world"]
}, {
println["Hello world"]
}]
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }, ]
useCallable[
{ println["Hello world"] },
]
useCallable[
{ println["Hello world"] },
useCallable[{ println["Hello world"] }
]
useCallable[
{ println["Hello world"] },
{ println["Hello world"] }]
useCallable["A", object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
useCallable["A", object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
useCallable["B", "C", object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}, foo[0, ]]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}, ]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}
]
useCallable[
"A",
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
"A",
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
"B", "C",
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
foo[0],
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
] {
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}] {
}
@@ -173,70 +138,53 @@ fun foo() {
override fun call() {
println["Hello world"]
}
},
]
}]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
bar /*
*/, /* */ foo
]
testtest[
/*
*/
foofoo, foofoo, foofoo, /*
testtest[/*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
foofoo, bar]
testtest[foofoo, foofoo, foofoo, foofoo, bar/*
*/]
testtest[foofoo, foofoo, foofoo, foofoo, bar // awdawda
]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
]
testtest[
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
]
testtest[
foofoo, foofoo, foofoo, foofoo, /*
testtest[foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
bar
]
testtest[
foofoo, // fd
testtest[foofoo // fd
]
testtest[
/**/
foofoo,
testtest[ /**/
foofoo
]
testtest[foofoo/**/]
testtest[foofoo,/**/]
testtest[
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
testtest[foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
]
testtest[
foofoo, // fd
testtest[foofoo // fd
]
testtest[
/**/
foofoo,
testtest[ /**/
foofoo
]
testtest[foofoo/**/]
testtest[foofoo,/**/]
testtest[
foofoo, fososos,/*
@@ -244,36 +192,24 @@ fun foo() {
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo, ]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/* */, /**/testsa]
testtest[foofoo, testtest[testtest[foofoo, ]]/* */, /**/testsa]
testtest[
foofoo,
testtest[testtest[foofoo]],/*
*/
testsa,
]
testtest[foofoo, testtest[testtest[foofoo, ]]/*
*/, testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, seee, testtest[testtest[foofoo, ]], /**/testsa]
testtest[
foofoo, seee, testtest[testtest[foofoo]], /*
*/
testsa,
]
testtest[foofoo, seee, testtest[testtest[foofoo, ]], /*
*/testsa]
useCallable[
"B", "C",
Callable {
println["Hello world"]
}, /* */
Callable {
println["Hello world"]
},
]
useCallable["B", "C", Callable {
println["Hello world"]
}, /* */ Callable {
println["Hello world"]
}]
useCallable[
Callable { println["Hello world"] }, // ffd
useCallable[Callable { println["Hello world"] } // ffd
]
}
@@ -0,0 +1,217 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest[foofoo, foofoo, foofoo,
foofoo, bar]
testtest[
foofoo, foofoo, foofoo, foofoo, bar
]
testtest[foofoo, foofoo, foofoo, foofoo, bar
]
testtest[foofoo, foofoo, foofoo, foofoo,
bar
]
testtest[foofoo
]
testtest[
foofoo]
testtest[
foofoo
]
testtest[foofoo]
testtest[foofoo, testtest[testtest[foofoo]]]
testtest[
foofoo, fososos,
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], testsa]
useCallable["A", Callable { println["Hello world"] }]
useCallable["B", "C", Callable {
println["Hello world"]
}, Callable {
println["Hello world"]
}]
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }]
useCallable[
Callable {
println["Hello world"]
},
]
useCallable[Callable { println["Hello world"] }
]
useCallable[Callable { println["Hello world"] }]{
}
useCallable[
Callable { println["Hello world"] }]
useCallable["A", { println["Hello world"] }]
useCallable["B", "C", {
println["Hello world"]
}, {
println["Hello world"]
}]
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }]
useCallable[
{ println["Hello world"] },
]
useCallable[{ println["Hello world"] }
]
useCallable[
{ println["Hello world"] }]
useCallable["A", object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
useCallable["A", object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
useCallable["B", "C", object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}, foo[0]]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}
]
useCallable[object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}] {
}
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
}]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar /*
*/, /* */ foo
]
testtest[/*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar]
testtest[foofoo, foofoo, foofoo, foofoo, bar/*
*/]
testtest[foofoo, foofoo, foofoo, foofoo, bar // awdawda
]
testtest[foofoo, foofoo, foofoo, foofoo, /*
*/
bar
]
testtest[foofoo // fd
]
testtest[ /**/
foofoo
]
testtest[foofoo/**/]
testtest[foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
]
testtest[foofoo // fd
]
testtest[ /**/
foofoo
]
testtest[foofoo/**/]
testtest[
foofoo, fososos,/*
*/
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/* */, /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/*
*/, testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], /*
*/testsa]
useCallable["B", "C", Callable {
println["Hello world"]
}, /* */ Callable {
println["Hello world"]
}]
useCallable[Callable { println["Hello world"] } // ffd
]
}
@@ -0,0 +1,279 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest[
foofoo, foofoo, foofoo,
foofoo, bar,
]
testtest[
foofoo, foofoo, foofoo, foofoo, bar,
]
testtest[
foofoo, foofoo, foofoo, foofoo, bar,
]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar,
]
testtest[
foofoo,
]
testtest[
foofoo,
]
testtest[
foofoo,
]
testtest[foofoo]
testtest[foofoo, testtest[testtest[foofoo]]]
testtest[
foofoo, fososos,
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], testsa]
testtest[foofoo, seee, testtest[testtest[foofoo]], testsa]
useCallable["A", Callable { println["Hello world"] }]
useCallable[
"B", "C",
Callable {
println["Hello world"]
},
Callable {
println["Hello world"]
},
]
useCallable[Callable { println["Hello world"] }]
useCallable[Callable { println["Hello world"] }]
useCallable[
Callable {
println["Hello world"]
},
]
useCallable[
Callable { println["Hello world"] },
]
useCallable[Callable { println["Hello world"] }]{
}
useCallable[
Callable { println["Hello world"] },
]
useCallable["A", { println["Hello world"] }]
useCallable[
"B", "C",
{
println["Hello world"]
},
{
println["Hello world"]
},
]
useCallable[{ println["Hello world"] }]
useCallable[{ println["Hello world"] }]
useCallable[
{ println["Hello world"] },
]
useCallable[
{ println["Hello world"] },
]
useCallable[
{ println["Hello world"] },
]
useCallable[
"A",
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
"A",
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
"B", "C",
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
foo[0],
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
] {
}
useCallable[
object : Callable<Unit> {
override fun call() {
println["Hello world"]
}
},
]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
]
testtest[
/*
*/
foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
]
testtest[
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
]
testtest[
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
]
testtest[
foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
]
testtest[
foofoo, // fd
]
testtest[
/**/
foofoo,
]
testtest[foofoo/**/]
testtest[
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
]
testtest[
foofoo, // fd
]
testtest[
/**/
foofoo,
]
testtest[foofoo/**/]
testtest[
foofoo, fososos,/*
*/
testtest[testtest[foofoo]],
]
testtest[foofoo, testtest[testtest[foofoo]], /**/testsa]
testtest[foofoo, testtest[testtest[foofoo]]/* */, /**/testsa]
testtest[
foofoo,
testtest[testtest[foofoo]],/*
*/
testsa,
]
testtest[foofoo, seee, testtest[testtest[foofoo]], /**/testsa]
testtest[
foofoo, seee, testtest[testtest[foofoo]], /*
*/
testsa,
]
useCallable[
"B", "C",
Callable {
println["Hello world"]
}, /* */
Callable {
println["Hello world"]
},
]
useCallable[
Callable { println["Hello world"] }, // ffd
]
}
@@ -0,0 +1,188 @@
val x = {
x: Comparable<Comparable<Number>>,
y: String,
->
println("1")
}
val x = { x: Comparable<Comparable<Number>>, y: String ->
println("1")
}
val x = { x: String, y
: String ->
println("1")
}
val x = { x: String,
y: String
->
println("1")
}
val x = {
x: String,
y: Comparable<Comparable<Number>>,
->
println("1")
}
val x = {
x: Comparable<Comparable<Number>>,
y: String,
->
println("1")
}
val x = {
x: String,
y: Comparable<Comparable<Number>>,
z: String,
->
println("1")
}
val x = { x: String,
y: String,
z: String
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
->
println("1")
}
val x = { x: String
->
println("1")
}
val x = { x: String ->
println("1")
}
val x = {
x: String,
->
println("1")
}
val x = {
x: String,
y: String,
->
println("1")
}
val x = { x: String,
z: String
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
z: String,
->
println("1")
}
val x = {
x, y: String,
z: String,
->
println("1")
}
val x = { x: String, y: String, z: String
->
println("1")
}
val x = {
z: String, v: Comparable<Comparable<Number>>,
->
println("1")
}
val x = {
x: String,
y: Comparable<Comparable<Number>>,
->
println("1")
}
val x = { x: Int
->
println("1")
}
val x = { x: String, y: String, /* */ z: String
->
println("1")
}
val x = { x: String, y: String
/* */, /* */ z: String
->
println("1")
}()
val x = {
x: String, /*
*/
y: String,
z: String,
->
println("1")
}
val x = {
x: String, y: String,
z: String, /*
*/
->
println("1")
}
val x = {
x: Comparable<Comparable<Number>>, y: String,
z: String,
->
println("1")
}
val x = { x: String, y: String, z: String
->
println("1")
}
// SET_TRUE: ALLOW_TRAILING_COMMA
@@ -0,0 +1,203 @@
val x = {
x: Comparable<Comparable<Number>>,
y: String,
->
println("1")
}
val x = { x: Comparable<Comparable<Number>>, y: String ->
println("1")
}
val x = {
x: String,
y
: String,
->
println("1")
}
val x = {
x: String,
y: String,
->
println("1")
}
val x = {
x: String,
y: Comparable<Comparable<Number>>,
->
println("1")
}
val x = {
x: Comparable<Comparable<Number>>,
y: String,
->
println("1")
}
val x = {
x: String,
y: Comparable<Comparable<Number>>,
z: String,
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
->
println("1")
}
val x = {
x: String,
->
println("1")
}
val x = { x: String ->
println("1")
}
val x = {
x: String,
->
println("1")
}
val x = {
x: String,
y: String,
->
println("1")
}
val x = {
x: String,
z: String,
->
println("1")
}
val x = {
x: String,
y: String,
z: String,
->
println("1")
}
val x = {
x: String,
z: String,
->
println("1")
}
val x = {
x, y: String,
z: String,
->
println("1")
}
val x = {
x: String, y: String, z: String,
->
println("1")
}
val x = {
z: String, v: Comparable<Comparable<Number>>,
->
println("1")
}
val x = {
x: String,
y: Comparable<Comparable<Number>>,
->
println("1")
}
val x = {
x: Int,
->
println("1")
}
val x = {
x: String, y: String, /* */
z: String,
->
println("1")
}
val x = {
x: String,
y: String,
/* */ /* */
z: String,
->
println("1")
}()
val x = {
x: String, /*
*/
y: String,
z: String,
->
println("1")
}
val x = {
x: String, y: String,
z: String, /*
*/
->
println("1")
}
val x = {
x: Comparable<Comparable<Number>>, y: String,
z: String,
->
println("1")
}
val x = {
x: String, y: String, z: String,
->
println("1")
}
// SET_TRUE: ALLOW_TRAILING_COMMA
@@ -35,19 +35,19 @@ fun foo() {
foofoo
>()
testtest<foofoo>()
testtest<foofoo, >()
testtest<foofoo, testtest<testtest<foofoo>>>()
testtest<foofoo, fososos, testtest<testtest<foofoo>>>()
testtest<foofoo, fososos, testtest<testtest<foofoo>>, >()
testtest<
foofoo, fososos, testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, testsa>()
testtest<foofoo, testtest<testtest<foofoo, >>, testsa>()
testtest<foofoo, *, testtest<testtest<foofoo>>, testsa>()
testtest<foofoo, *, testtest<testtest<foofoo, >>, testsa>()
testtest<
foofoo, foofoo, foofoo, foofoo,
@@ -80,7 +80,7 @@ fun foo() {
foofoo
>()
testtest<foofoo/**/>()
testtest<foofoo,/**/>()
testtest<foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
@@ -93,7 +93,7 @@ fun foo() {
foofoo
>()
testtest<foofoo/**/>()
testtest<foofoo,/**/>()
testtest<
foofoo,/*
@@ -110,15 +110,15 @@ fun foo() {
testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo, >>, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo>>/* */, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo, >>/* */, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo>>/*
testtest<foofoo, testtest<testtest<foofoo, >>/*
*/, testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo, >>, /**/testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo>>, /*
testtest<foofoo, seee, testtest<testtest<foofoo, >>, /*
*/testsa>()
}
@@ -11,111 +11,89 @@ fun foo() {
testsa,
>()
testtest<foofoo, foofoo, foofoo,
foofoo, bar>()
testtest<
foofoo, foofoo, foofoo,
foofoo, bar,
foofoo, foofoo, foofoo, foofoo, bar
>()
testtest<foofoo, foofoo, foofoo, foofoo, bar
>()
testtest<foofoo, foofoo, foofoo, foofoo,
bar
>()
testtest<foofoo
>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar,
>()
foofoo>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar,
foofoo
>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar,
>()
testtest<
foofoo,
>()
testtest<
foofoo,
>()
testtest<
foofoo,
>()
testtest<foofoo>()
testtest<foofoo, >()
testtest<foofoo, testtest<testtest<foofoo>>>()
testtest<foofoo, fososos, testtest<testtest<foofoo>>>()
testtest<foofoo, fososos, testtest<testtest<foofoo>>, >()
testtest<
foofoo, fososos, testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, testsa>()
testtest<foofoo, testtest<testtest<foofoo, >>, testsa>()
testtest<foofoo, *, testtest<testtest<foofoo>>, testsa>()
testtest<foofoo, *, testtest<testtest<foofoo, >>, testsa>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
bar /*
*/, /* */ foo
>()
testtest<
/*
*/
foofoo, foofoo, foofoo, /*
testtest</*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
foofoo, bar>()
testtest<foofoo, foofoo, foofoo, foofoo, bar/*
*/>()
testtest<foofoo, foofoo, foofoo, foofoo, bar // awdawda
>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
>()
testtest<
foofoo, foofoo, foofoo, foofoo, /*
testtest<foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
bar
>()
testtest<
foofoo, // fd
testtest<foofoo // fd
>()
testtest<
/**/
foofoo,
testtest< /**/
foofoo
>()
testtest<foofoo/**/>()
testtest<foofoo,/**/>()
testtest<
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
testtest<foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
>()
testtest<
foofoo, // fd
testtest<foofoo // fd
>()
testtest<
/**/
foofoo,
testtest< /**/
foofoo
>()
testtest<foofoo/**/>()
testtest<foofoo,/**/>()
testtest<
foofoo,/*
@@ -132,22 +110,15 @@ fun foo() {
testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo, >>, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo>>/* */, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo, >>/* */, /**/testsa>()
testtest<
foofoo,
testtest<testtest<foofoo>>,/*
*/
testsa,
>()
testtest<foofoo, testtest<testtest<foofoo, >>/*
*/, testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo, >>, /**/testsa>()
testtest<
foofoo, seee, testtest<testtest<foofoo>>, /*
*/
testsa,
>()
testtest<foofoo, seee, testtest<testtest<foofoo, >>, /*
*/testsa>()
}
@@ -0,0 +1,124 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest<
foofoo,
testtest<
testtest<
foofoo,
>,
>,
testsa,
>()
testtest<foofoo, foofoo, foofoo,
foofoo, bar>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar
>()
testtest<foofoo, foofoo, foofoo, foofoo, bar
>()
testtest<foofoo, foofoo, foofoo, foofoo,
bar
>()
testtest<foofoo
>()
testtest<
foofoo>()
testtest<
foofoo
>()
testtest<foofoo>()
testtest<foofoo, testtest<testtest<foofoo>>>()
testtest<foofoo, fososos, testtest<testtest<foofoo>>>()
testtest<
foofoo, fososos, testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, testsa>()
testtest<foofoo, *, testtest<testtest<foofoo>>, testsa>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar /*
*/, /* */ foo
>()
testtest</*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar>()
testtest<foofoo, foofoo, foofoo, foofoo, bar/*
*/>()
testtest<foofoo, foofoo, foofoo, foofoo, bar // awdawda
>()
testtest<foofoo, foofoo, foofoo, foofoo, /*
*/
bar
>()
testtest<foofoo // fd
>()
testtest< /**/
foofoo
>()
testtest<foofoo/**/>()
testtest<foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
>()
testtest<foofoo // fd
>()
testtest< /**/
foofoo
>()
testtest<foofoo/**/>()
testtest<
foofoo,/*
*/
>()
testtest<
foofoo,/**/
>()
testtest<
foofoo, fososos,/*
*/
testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo>>/* */, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo>>/*
*/, testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, seee, testtest<testtest<foofoo>>, /*
*/testsa>()
}
@@ -0,0 +1,153 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest<
foofoo,
testtest<
testtest<
foofoo,
>,
>,
testsa,
>()
testtest<
foofoo, foofoo, foofoo,
foofoo, bar,
>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar,
>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar,
>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar,
>()
testtest<
foofoo,
>()
testtest<
foofoo,
>()
testtest<
foofoo,
>()
testtest<foofoo>()
testtest<foofoo, testtest<testtest<foofoo>>>()
testtest<foofoo, fososos, testtest<testtest<foofoo>>>()
testtest<
foofoo, fososos, testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, testsa>()
testtest<foofoo, *, testtest<testtest<foofoo>>, testsa>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
>()
testtest<
/*
*/
foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
>()
testtest<
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
>()
testtest<
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
>()
testtest<
foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
>()
testtest<
foofoo, // fd
>()
testtest<
/**/
foofoo,
>()
testtest<foofoo/**/>()
testtest<
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
>()
testtest<
foofoo, // fd
>()
testtest<
/**/
foofoo,
>()
testtest<foofoo/**/>()
testtest<
foofoo,/*
*/
>()
testtest<
foofoo,/**/
>()
testtest<
foofoo, fososos,/*
*/
testtest<testtest<foofoo>>,
>()
testtest<foofoo, testtest<testtest<foofoo>>, /**/testsa>()
testtest<foofoo, testtest<testtest<foofoo>>/* */, /**/testsa>()
testtest<
foofoo,
testtest<testtest<foofoo>>,/*
*/
testsa,
>()
testtest<foofoo, seee, testtest<testtest<foofoo>>, /**/testsa>()
testtest<
foofoo, seee, testtest<testtest<foofoo>>, /*
*/
testsa,
>()
}
@@ -0,0 +1,278 @@
class A1<
x : String,
y : String,
>
class F<x : String, y : String>
class F2<x : String, y
: String>
class B1<
x : String,
y : String
>
class C1<
x : String,
y : String,
>
class D1<
x : String,
y : String,
>
class A2<
x : String,
y : String,
z : String,
>
class B2<
x : String,
y : String,
z : String
>
class C2<
x : String,
y : String,
z : String,
>
class D2<
x : String,
y : String,
z : String,
>
class A3<
x : String,
>
class B3<
x : String
>
class C3<
x : String,
>
class D3<
x : String,
>
class A4<
x : String,
y : String,
z,
>
class B4<
x : String,
y,
z : String
>
class C4<
x : String,
y : String,
z : String,
>
class D4<
x : String,
y,
z : String,
>
class E1<
x, y : String,
z : String,
>
class E2<
x : String, y : String, z : String
>
class C<
z : String, v
>
fun <
x : String,
y : String,
> a1() = Unit
fun <x : String,
y : String
> b1() = Unit
fun <
x : String,
y : String,
> c1() = Unit
fun <
x : String,
y : String,
> d1() = Unit
fun <
x : String,
y : String,
z : String,
> a2() = Unit
fun <
x : String,
y : String,
z : String
> b2() = Unit
fun <
x : String,
y : String,
z : String,
> c2() = Unit
fun <
x : String,
y : String,
z : String,
> d2() = Unit
fun <
x : String,
> a3() = Unit
fun <
x : String
> b3() = Unit
fun <
x : String,
> c3() = Unit
fun <
x : String,
> d3() = Unit
fun <
x : String,
y : String,
z : String,
> a4() = Unit
fun <
x : String,
y : String,
z : String
> b4() = Unit
fun <
x : String,
y : String,
z : String,
> c4() = Unit
fun <
x : String,
y : String,
z : String,
> d4() = Unit
fun <
x
> foo() {
}
fun <T> ag() {
}
fun <T> ag() {
}
fun <
T> ag() {
}
class C<
x : Int
>
class G<
x : String, y : String, /* */ z : String
>
class G<
x : String, y : String
/* */, /* */ z : String
>()
class H<
x : String, /*
*/
y : String,
z : String,
>
class J<
x : String, y : String,
z : String, /*
*/
>
class K<
x : String, y : String,
z : String,
>
class L<
x : String, y : String, z : String
>
class C<
x : Int // adad
>
class G<
x : String, y : String, /* */ z : String // adad
>
class G<
x : String,
y : String,
/* */ /* */
z : String, /**/
>()
class H<
x : String, /*
*/
y : String,
z : String, /*
*/
>
class J<
x : String, y : String,
z : String, /*
*/ /**/
>
class K<
x : String, y : String,
z : String, // aw
>
class L<
x : String, y : String, z : String //awd
>
// SET_TRUE: ALLOW_TRAILING_COMMA
@@ -0,0 +1,287 @@
class A1<
x : String,
y : String,
>
class F<x : String, y : String>
class F2<
x : String,
y
: String,
>
class B1<
x : String,
y : String,
>
class C1<
x : String,
y : String,
>
class D1<
x : String,
y : String,
>
class A2<
x : String,
y : String,
z : String,
>
class B2<
x : String,
y : String,
z : String,
>
class C2<
x : String,
y : String,
z : String,
>
class D2<
x : String,
y : String,
z : String,
>
class A3<
x : String,
>
class B3<
x : String,
>
class C3<
x : String,
>
class D3<
x : String,
>
class A4<
x : String,
y : String,
z,
>
class B4<
x : String,
y,
z : String,
>
class C4<
x : String,
y : String,
z : String,
>
class D4<
x : String,
y,
z : String,
>
class E1<
x, y : String,
z : String,
>
class E2<
x : String, y : String, z : String,
>
class C<
z : String, v,
>
fun <
x : String,
y : String,
> a1() = Unit
fun <
x : String,
y : String,
> b1() = Unit
fun <
x : String,
y : String,
> c1() = Unit
fun <
x : String,
y : String,
> d1() = Unit
fun <
x : String,
y : String,
z : String,
> a2() = Unit
fun <
x : String,
y : String,
z : String,
> b2() = Unit
fun <
x : String,
y : String,
z : String,
> c2() = Unit
fun <
x : String,
y : String,
z : String,
> d2() = Unit
fun <
x : String,
> a3() = Unit
fun <
x : String,
> b3() = Unit
fun <
x : String,
> c3() = Unit
fun <
x : String,
> d3() = Unit
fun <
x : String,
y : String,
z : String,
> a4() = Unit
fun <
x : String,
y : String,
z : String,
> b4() = Unit
fun <
x : String,
y : String,
z : String,
> c4() = Unit
fun <
x : String,
y : String,
z : String,
> d4() = Unit
fun <
x,
> foo() {
}
fun <T> ag() {
}
fun <T> ag() {
}
fun <
T,
> ag() {
}
class C<
x : Int,
>
class G<
x : String, y : String, /* */
z : String,
>
class G<
x : String,
y : String,
/* */ /* */
z : String,
>()
class H<
x : String, /*
*/
y : String,
z : String,
>
class J<
x : String, y : String,
z : String, /*
*/
>
class K<
x : String, y : String,
z : String,
>
class L<
x : String, y : String, z : String,
>
class C<
x : Int, // adad
>
class G<
x : String, y : String, /* */
z : String, // adad
>
class G<
x : String,
y : String,
/* */ /* */
z : String, /**/
>()
class H<
x : String, /*
*/
y : String,
z : String, /*
*/
>
class J<
x : String, y : String,
z : String, /*
*/ /**/
>
class K<
x : String, y : String,
z : String, // aw
>
class L<
x : String, y : String, z : String, //awd
>
// SET_TRUE: ALLOW_TRAILING_COMMA
@@ -26,15 +26,15 @@ fun foo() {
foofoo
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)), )
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, testtest(testtest(foofoo, )), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), testsa)
useCallable("A", Callable { println("Hello world") })
@@ -46,7 +46,7 @@ fun foo() {
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(Callable { println("Hello world") }
)
@@ -68,7 +68,7 @@ fun foo() {
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable({ println("Hello world") }
)
@@ -90,7 +90,7 @@ fun foo() {
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(foo() { println("Hello world") }
)
@@ -128,13 +128,11 @@ fun foo() {
}
})
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
@@ -189,7 +187,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
@@ -202,7 +200,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, fososos,/*
@@ -210,16 +208,16 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, ))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/*
testtest(foofoo, testtest(testtest(foofoo, ))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /*
testtest(foofoo, seee, testtest(testtest(foofoo, )), /*
*/testsa)
useCallable("B", "C", Callable {
@@ -267,9 +265,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
@@ -2,64 +2,53 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest(foofoo, foofoo, foofoo,
foofoo, bar)
testtest(
foofoo, foofoo, foofoo,
foofoo, bar,
foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo,
bar
)
testtest(foofoo
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
)
foofoo)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
foofoo
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)), )
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, testtest(testtest(foofoo, )), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), testsa)
useCallable("A", Callable { println("Hello world") })
useCallable(
"B", "C",
Callable {
println("Hello world")
},
Callable {
println("Hello world")
},
)
useCallable("B", "C", Callable {
println("Hello world")
}, Callable {
println("Hello world")
})
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(
Callable { println("Hello world") },
useCallable(Callable { println("Hello world") }
)
useCallable(Callable { println("Hello world") }) {
@@ -67,27 +56,21 @@ fun foo() {
}
useCallable(
Callable { println("Hello world") },
)
Callable { println("Hello world") })
useCallable("A", { println("Hello world") })
useCallable(
"B", "C",
{
println("Hello world")
},
{
println("Hello world")
},
)
useCallable("B", "C", {
println("Hello world")
}, {
println("Hello world")
})
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable(
{ println("Hello world") },
useCallable({ println("Hello world") }
)
useCallable({ println("Hello world") }) {
@@ -95,27 +78,21 @@ fun foo() {
}
useCallable(
{ println("Hello world") },
)
{ println("Hello world") })
useCallable("A", foo() { println("Hello world") })
useCallable(
"B", "C",
foo() {
println("Hello world")
},
foo() {
println("Hello world")
},
)
useCallable("B", "C", foo() {
println("Hello world")
}, foo() {
println("Hello world")
})
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(
foo() { println("Hello world") },
useCallable(foo() { println("Hello world") }
)
useCallable(foo() { println("Hello world") }) {
@@ -123,70 +100,52 @@ fun foo() {
}
useCallable(
foo() { println("Hello world") },
foo() { println("Hello world") })
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("B", "C", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, foo() {
println("Hello world")
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"B", "C",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
foo() {
println("Hello world")
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
) {
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}) {
}
@@ -195,70 +154,53 @@ fun foo() {
override fun call() {
println("Hello world")
}
},
)
})
testtest(
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
bar /*
*/, /* */ foo
)
testtest(
/*
*/
foofoo, foofoo, foofoo, /*
testtest(/*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
foofoo, bar)
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
*/)
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo, /*
testtest(foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, fososos,/*
@@ -266,37 +208,25 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, ))/* */, /**/testsa)
testtest(
foofoo,
testtest(testtest(foofoo)),/*
*/
testsa,
)
testtest(foofoo, testtest(testtest(foofoo, ))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /**/testsa)
testtest(
foofoo, seee, testtest(testtest(foofoo)), /*
*/
testsa,
)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /*
*/testsa)
useCallable(
"B", "C",
Callable {
println("Hello world")
}, /* */
Callable {
println("Hello world")
},
)
useCallable("B", "C", Callable {
println("Hello world")
}, /* */ Callable {
println("Hello world")
})
useCallable(
Callable { println("Hello world") }, // ffd
useCallable(Callable { println("Hello world") } // ffd
)
useCallable(
@@ -323,15 +253,9 @@ fun foo() {
Callable { println("Hello world") },
)
testtest(
testtest(foofoo, testtest(testtest(
foofoo,
testtest(
testtest(
foofoo,
),
),
testsa,
)
)), testsa)
testtest(
foofoo, fososos, testtest(testtest(foofoo)),
@@ -341,9 +265,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
@@ -26,15 +26,15 @@ fun foo() {
foofoo
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)), )
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, testtest(testtest(foofoo, )), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), testsa)
useCallable("A", Callable { println("Hello world") })
@@ -46,7 +46,7 @@ fun foo() {
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(Callable { println("Hello world") }
)
@@ -68,7 +68,7 @@ fun foo() {
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable({ println("Hello world") }
)
@@ -90,7 +90,7 @@ fun foo() {
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(foo() { println("Hello world") }
)
@@ -128,13 +128,11 @@ fun foo() {
}
})
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
@@ -189,7 +187,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
@@ -202,7 +200,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, fososos,/*
@@ -210,16 +208,16 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, ))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/*
testtest(foofoo, testtest(testtest(foofoo, ))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /*
testtest(foofoo, seee, testtest(testtest(foofoo, )), /*
*/testsa)
useCallable("B", "C", Callable {
@@ -267,9 +265,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
@@ -2,64 +2,53 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest(foofoo, foofoo, foofoo,
foofoo, bar)
testtest(
foofoo, foofoo, foofoo,
foofoo, bar,
foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo,
bar
)
testtest(foofoo
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
)
foofoo)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
foofoo
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)), )
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, testtest(testtest(foofoo, )), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), testsa)
useCallable("A", Callable { println("Hello world") })
useCallable(
"B", "C",
Callable {
println("Hello world")
},
Callable {
println("Hello world")
},
)
useCallable("B", "C", Callable {
println("Hello world")
}, Callable {
println("Hello world")
})
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(
Callable { println("Hello world") },
useCallable(Callable { println("Hello world") }
)
useCallable(Callable { println("Hello world") }) {
@@ -67,27 +56,21 @@ fun foo() {
}
useCallable(
Callable { println("Hello world") },
)
Callable { println("Hello world") })
useCallable("A", { println("Hello world") })
useCallable(
"B", "C",
{
println("Hello world")
},
{
println("Hello world")
},
)
useCallable("B", "C", {
println("Hello world")
}, {
println("Hello world")
})
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable(
{ println("Hello world") },
useCallable({ println("Hello world") }
)
useCallable({ println("Hello world") }) {
@@ -95,27 +78,21 @@ fun foo() {
}
useCallable(
{ println("Hello world") },
)
{ println("Hello world") })
useCallable("A", foo() { println("Hello world") })
useCallable(
"B", "C",
foo() {
println("Hello world")
},
foo() {
println("Hello world")
},
)
useCallable("B", "C", foo() {
println("Hello world")
}, foo() {
println("Hello world")
})
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(
foo() { println("Hello world") },
useCallable(foo() { println("Hello world") }
)
useCallable(foo() { println("Hello world") }) {
@@ -123,70 +100,52 @@ fun foo() {
}
useCallable(
foo() { println("Hello world") },
foo() { println("Hello world") })
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("B", "C", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, foo() {
println("Hello world")
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"B", "C",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
foo() {
println("Hello world")
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
) {
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}) {
}
@@ -195,70 +154,53 @@ fun foo() {
override fun call() {
println("Hello world")
}
},
)
})
testtest(
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
bar /*
*/, /* */ foo
)
testtest(
/*
*/
foofoo, foofoo, foofoo, /*
testtest(/*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
foofoo, bar)
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
*/)
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo, /*
testtest(foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, fososos,/*
@@ -266,37 +208,25 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, ))/* */, /**/testsa)
testtest(
foofoo,
testtest(testtest(foofoo)),/*
*/
testsa,
)
testtest(foofoo, testtest(testtest(foofoo, ))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /**/testsa)
testtest(
foofoo, seee, testtest(testtest(foofoo)), /*
*/
testsa,
)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /*
*/testsa)
useCallable(
"B", "C",
Callable {
println("Hello world")
}, /* */
Callable {
println("Hello world")
},
)
useCallable("B", "C", Callable {
println("Hello world")
}, /* */ Callable {
println("Hello world")
})
useCallable(
Callable { println("Hello world") }, // ffd
useCallable(Callable { println("Hello world") } // ffd
)
useCallable(
@@ -323,15 +253,9 @@ fun foo() {
Callable { println("Hello world") },
)
testtest(
testtest(foofoo, testtest(testtest(
foofoo,
testtest(
testtest(
foofoo,
),
),
testsa,
)
)), testsa)
testtest(
foofoo, fososos, testtest(testtest(foofoo)),
@@ -341,9 +265,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
@@ -50,24 +50,22 @@ fun foo() {
foofoo
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo,
testtest(testtest(foofoo)))
testtest(
foofoo,
testtest(foofoo,
fososos,
testtest(testtest(foofoo)),
)
testtest(testtest(foofoo)), )
testtest(foofoo,
testtest(testtest(foofoo)),
testtest(testtest(foofoo, )),
testsa)
testtest(foofoo,
seee,
testtest(testtest(foofoo)),
testtest(testtest(foofoo, )),
testsa)
useCallable("A",
@@ -84,7 +82,7 @@ fun foo() {
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(Callable { println("Hello world") }
)
@@ -110,7 +108,7 @@ fun foo() {
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable({ println("Hello world") }
)
@@ -136,7 +134,7 @@ fun foo() {
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(foo() { println("Hello world") }
)
@@ -179,13 +177,11 @@ fun foo() {
}
})
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
@@ -258,7 +254,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(foofoo,
foofoo,
@@ -275,7 +271,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo,
@@ -285,26 +281,26 @@ fun foo() {
)
testtest(foofoo,
testtest(testtest(foofoo)), /**/
testtest(testtest(foofoo, )), /**/
testsa)
testtest(foofoo,
testtest(testtest(foofoo))/* */, /**/
testtest(testtest(foofoo, ))/* */, /**/
testsa)
testtest(foofoo,
testtest(testtest(foofoo))/*
testtest(testtest(foofoo, ))/*
*/,
testsa)
testtest(foofoo,
seee,
testtest(testtest(foofoo)), /**/
testtest(testtest(foofoo, )), /**/
testsa)
testtest(foofoo,
seee,
testtest(testtest(foofoo)), /*
testtest(testtest(foofoo, )), /*
*/
testsa)
@@ -360,9 +356,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
}
@@ -12,98 +12,79 @@ fun foo() {
testsa,
)
testtest(foofoo,
foofoo,
foofoo,
foofoo,
bar)
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar,
bar
)
testtest(foofoo,
foofoo,
foofoo,
foofoo,
bar
)
testtest(foofoo,
foofoo,
foofoo,
foofoo,
bar
)
testtest(foofoo
)
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar,
)
foofoo)
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar,
foofoo
)
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar,
)
testtest(foofoo, )
testtest(
foofoo,
)
testtest(foofoo,
testtest(testtest(foofoo)))
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(foofoo)
testtest(
foofoo,
testtest(testtest(foofoo)),
)
testtest(
foofoo,
testtest(foofoo,
fososos,
testtest(testtest(foofoo)),
)
testtest(testtest(foofoo)), )
testtest(
foofoo,
testtest(testtest(foofoo)),
testsa,
)
testtest(foofoo,
testtest(testtest(foofoo, )),
testsa)
testtest(
foofoo,
testtest(foofoo,
seee,
testtest(testtest(foofoo)),
testsa,
)
testtest(testtest(foofoo, )),
testsa)
useCallable(
"A",
Callable { println("Hello world") },
)
useCallable("A",
Callable { println("Hello world") })
useCallable(
"B",
useCallable("B",
"C",
Callable {
println("Hello world")
},
Callable {
println("Hello world")
},
)
})
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(
Callable { println("Hello world") },
useCallable(Callable { println("Hello world") }
)
useCallable(Callable { println("Hello world") }) {
@@ -111,31 +92,25 @@ fun foo() {
}
useCallable(
Callable { println("Hello world") },
)
Callable { println("Hello world") })
useCallable(
"A",
{ println("Hello world") },
)
useCallable("A",
{ println("Hello world") })
useCallable(
"B",
useCallable("B",
"C",
{
println("Hello world")
},
{
println("Hello world")
},
)
})
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable(
{ println("Hello world") },
useCallable({ println("Hello world") }
)
useCallable({ println("Hello world") }) {
@@ -143,31 +118,25 @@ fun foo() {
}
useCallable(
{ println("Hello world") },
)
{ println("Hello world") })
useCallable(
"A",
foo() { println("Hello world") },
)
useCallable("A",
foo() { println("Hello world") })
useCallable(
"B",
useCallable("B",
"C",
foo() {
println("Hello world")
},
foo() {
println("Hello world")
},
)
})
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(
foo() { println("Hello world") },
useCallable(foo() { println("Hello world") }
)
useCallable(foo() { println("Hello world") }) {
@@ -175,29 +144,23 @@ fun foo() {
}
useCallable(
foo() { println("Hello world") },
)
foo() { println("Hello world") })
useCallable(
"A",
useCallable("A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
})
useCallable(
"A",
useCallable("A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
})
useCallable(
"B",
useCallable("B",
"C",
object : Callable<Unit> {
override fun call() {
@@ -206,40 +169,32 @@ fun foo() {
},
foo() {
println("Hello world")
},
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
) {
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}) {
}
@@ -248,88 +203,75 @@ fun foo() {
override fun call() {
println("Hello world")
}
},
)
})
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar, /*
*/ /* */
foo,
bar /*
*/, /* */
foo
)
testtest(
/*
*/
foofoo,
testtest(/*
*/foofoo,
foofoo,
foofoo, /*
*/
foofoo,
bar,
bar)
testtest(foofoo,
foofoo,
foofoo,
foofoo,
bar/*
*/)
testtest(foofoo,
foofoo,
foofoo,
foofoo,
bar // awdawda
)
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar,/*
*/
)
testtest(
foofoo,
foofoo,
foofoo,
foofoo,
bar, // awdawda
)
testtest(
foofoo,
testtest(foofoo,
foofoo,
foofoo,
foofoo, /*
*/
bar,
bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
testtest(foofoo,
foofoo,
foofoo,
foofoo,
foofoo,/*
*/ /* */
bar,
foofoo/*
*/, /* */
bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo,
@@ -338,53 +280,40 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(
foofoo,
testtest(testtest(foofoo)), /**/
testsa,
)
testtest(foofoo,
testtest(testtest(foofoo, )), /**/
testsa)
testtest(
foofoo,
testtest(testtest(foofoo)),/* */ /**/
testsa,
)
testtest(foofoo,
testtest(testtest(foofoo, ))/* */, /**/
testsa)
testtest(
foofoo,
testtest(testtest(foofoo)),/*
*/
testsa,
)
testtest(foofoo,
testtest(testtest(foofoo, ))/*
*/,
testsa)
testtest(
foofoo,
testtest(foofoo,
seee,
testtest(testtest(foofoo)), /**/
testsa,
)
testtest(testtest(foofoo, )), /**/
testsa)
testtest(
foofoo,
testtest(foofoo,
seee,
testtest(testtest(foofoo)), /*
testtest(testtest(foofoo, )), /*
*/
testsa,
)
testsa)
useCallable(
"B",
useCallable("B",
"C",
Callable {
println("Hello world")
}, /* */
Callable {
println("Hello world")
},
)
})
useCallable(
Callable { println("Hello world") }, // ffd
useCallable(Callable { println("Hello world") } // ffd
)
useCallable(
@@ -411,15 +340,11 @@ fun foo() {
Callable { println("Hello world") },
)
testtest(
foofoo,
testtest(
testtest(
foofoo,
),
),
testsa,
)
testtest(foofoo,
testtest(testtest(
foofoo,
)),
testsa)
testtest(
foofoo,
@@ -431,9 +356,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
}
@@ -26,15 +26,15 @@ fun foo() {
foofoo
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)), )
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, testtest(testtest(foofoo, )), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), testsa)
useCallable("A", Callable { println("Hello world") })
@@ -46,7 +46,7 @@ fun foo() {
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(Callable { println("Hello world") }
)
@@ -68,7 +68,7 @@ fun foo() {
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable({ println("Hello world") }
)
@@ -90,7 +90,7 @@ fun foo() {
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(foo() { println("Hello world") }
)
@@ -128,13 +128,11 @@ fun foo() {
}
})
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
@@ -189,7 +187,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
@@ -202,7 +200,7 @@ fun foo() {
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, fososos,/*
@@ -210,16 +208,16 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, ))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/*
testtest(foofoo, testtest(testtest(foofoo, ))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /*
testtest(foofoo, seee, testtest(testtest(foofoo, )), /*
*/testsa)
useCallable("B", "C", Callable {
@@ -267,9 +265,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
@@ -2,64 +2,53 @@
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest(foofoo, foofoo, foofoo,
foofoo, bar)
testtest(
foofoo, foofoo, foofoo,
foofoo, bar,
foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo,
bar
)
testtest(foofoo
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
)
foofoo)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
foofoo
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(foofoo)
testtest(foofoo, )
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)), )
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, testtest(testtest(foofoo, )), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), testsa)
useCallable("A", Callable { println("Hello world") })
useCallable(
"B", "C",
Callable {
println("Hello world")
},
Callable {
println("Hello world")
},
)
useCallable("B", "C", Callable {
println("Hello world")
}, Callable {
println("Hello world")
})
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }, )
useCallable(
Callable { println("Hello world") },
useCallable(Callable { println("Hello world") }
)
useCallable(Callable { println("Hello world") }) {
@@ -67,27 +56,21 @@ fun foo() {
}
useCallable(
Callable { println("Hello world") },
)
Callable { println("Hello world") })
useCallable("A", { println("Hello world") })
useCallable(
"B", "C",
{
println("Hello world")
},
{
println("Hello world")
},
)
useCallable("B", "C", {
println("Hello world")
}, {
println("Hello world")
})
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }, )
useCallable(
{ println("Hello world") },
useCallable({ println("Hello world") }
)
useCallable({ println("Hello world") }) {
@@ -95,27 +78,21 @@ fun foo() {
}
useCallable(
{ println("Hello world") },
)
{ println("Hello world") })
useCallable("A", foo() { println("Hello world") })
useCallable(
"B", "C",
foo() {
println("Hello world")
},
foo() {
println("Hello world")
},
)
useCallable("B", "C", foo() {
println("Hello world")
}, foo() {
println("Hello world")
})
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }, )
useCallable(
foo() { println("Hello world") },
useCallable(foo() { println("Hello world") }
)
useCallable(foo() { println("Hello world") }) {
@@ -123,70 +100,52 @@ fun foo() {
}
useCallable(
foo() { println("Hello world") },
foo() { println("Hello world") })
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("B", "C", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, foo() {
println("Hello world")
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, )
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"B", "C",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
foo() {
println("Hello world")
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
) {
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}) {
}
@@ -195,70 +154,53 @@ fun foo() {
override fun call() {
println("Hello world")
}
},
)
})
testtest(
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
bar /*
*/, /* */ foo
)
testtest(
/*
*/
foofoo, foofoo, foofoo, /*
testtest(/*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
foofoo, bar)
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
*/)
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo, /*
testtest(foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
)
testtest(
foofoo, // fd
testtest(foofoo // fd
)
testtest(
/**/
foofoo,
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo,/**/)
testtest(
foofoo, fososos,/*
@@ -266,37 +208,25 @@ fun foo() {
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, )), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo, ))/* */, /**/testsa)
testtest(
foofoo,
testtest(testtest(foofoo)),/*
*/
testsa,
)
testtest(foofoo, testtest(testtest(foofoo, ))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /**/testsa)
testtest(
foofoo, seee, testtest(testtest(foofoo)), /*
*/
testsa,
)
testtest(foofoo, seee, testtest(testtest(foofoo, )), /*
*/testsa)
useCallable(
"B", "C",
Callable {
println("Hello world")
}, /* */
Callable {
println("Hello world")
},
)
useCallable("B", "C", Callable {
println("Hello world")
}, /* */ Callable {
println("Hello world")
})
useCallable(
Callable { println("Hello world") }, // ffd
useCallable(Callable { println("Hello world") } // ffd
)
useCallable(
@@ -323,15 +253,9 @@ fun foo() {
Callable { println("Hello world") },
)
testtest(
testtest(foofoo, testtest(testtest(
foofoo,
testtest(
testtest(
foofoo,
),
),
testsa,
)
)), testsa)
testtest(
foofoo, fososos, testtest(testtest(foofoo)),
@@ -341,9 +265,9 @@ fun foo() {
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
f = fun(it: Int): String = "$it" /*dwdwd
*/,
name = "" /*
*/,
)
}
@@ -0,0 +1,275 @@
// SET_INT: CALL_PARAMETERS_WRAP = 1
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest(foofoo, foofoo, foofoo,
foofoo, bar)
testtest(
foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo, bar
)
testtest(foofoo, foofoo, foofoo, foofoo,
bar
)
testtest(foofoo
)
testtest(
foofoo)
testtest(
foofoo
)
testtest(foofoo)
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
useCallable("A", Callable { println("Hello world") })
useCallable("B", "C", Callable {
println("Hello world")
}, Callable {
println("Hello world")
})
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") }
)
useCallable(Callable { println("Hello world") }) {
}
useCallable(
Callable { println("Hello world") })
useCallable("A", { println("Hello world") })
useCallable("B", "C", {
println("Hello world")
}, {
println("Hello world")
})
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable({ println("Hello world") }
)
useCallable({ println("Hello world") }) {
}
useCallable(
{ println("Hello world") })
useCallable("A", foo() { println("Hello world") })
useCallable("B", "C", foo() {
println("Hello world")
}, foo() {
println("Hello world")
})
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") }
)
useCallable(foo() { println("Hello world") }) {
}
useCallable(
foo() { println("Hello world") })
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("A", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable("B", "C", object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}, foo() {
println("Hello world")
})
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}
)
useCallable(object : Callable<Unit> {
override fun call() {
println("Hello world")
}
}) {
}
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
})
testtest(
foofoo, foofoo, foofoo, foofoo,
bar /*
*/, /* */ foo
)
testtest(/*
*/foofoo, foofoo, foofoo, /*
*/
foofoo, bar)
testtest(foofoo, foofoo, foofoo, foofoo, bar/*
*/)
testtest(foofoo, foofoo, foofoo, foofoo, bar // awdawda
)
testtest(foofoo, foofoo, foofoo, foofoo, /*
*/
bar
)
testtest(foofoo // fd
)
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(foofoo, foofoo, foofoo, foofoo/*
*/, /* */ bar
)
testtest(foofoo // fd
)
testtest( /**/
foofoo
)
testtest(foofoo/**/)
testtest(
foofoo, fososos,/*
*/
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/*
*/, testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), /*
*/testsa)
useCallable("B", "C", Callable {
println("Hello world")
}, /* */ Callable {
println("Hello world")
})
useCallable(Callable { println("Hello world") } // ffd
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
foo() {
println("Hello world")
},
)
useCallable(
{
println("Hello world")
},
)
useCallable(
Callable { println("Hello world") },
)
testtest(foofoo, testtest(testtest(
foofoo,
)), testsa)
testtest(
foofoo, fososos, testtest(testtest(foofoo)),
)
}
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
)
}
@@ -0,0 +1,349 @@
// SET_INT: CALL_PARAMETERS_WRAP = 1
// SET_TRUE: ALLOW_TRAILING_COMMA
fun foo() {
testtest(
foofoo, foofoo, foofoo,
foofoo, bar,
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar,
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(
foofoo,
)
testtest(foofoo)
testtest(foofoo, testtest(testtest(foofoo)))
testtest(foofoo, fososos, testtest(testtest(foofoo)))
testtest(foofoo, testtest(testtest(foofoo)), testsa)
testtest(foofoo, seee, testtest(testtest(foofoo)), testsa)
useCallable("A", Callable { println("Hello world") })
useCallable(
"B", "C",
Callable {
println("Hello world")
},
Callable {
println("Hello world")
},
)
useCallable(Callable { println("Hello world") })
useCallable(Callable { println("Hello world") })
useCallable(
Callable { println("Hello world") },
)
useCallable(Callable { println("Hello world") }) {
}
useCallable(
Callable { println("Hello world") },
)
useCallable("A", { println("Hello world") })
useCallable(
"B", "C",
{
println("Hello world")
},
{
println("Hello world")
},
)
useCallable({ println("Hello world") })
useCallable({ println("Hello world") })
useCallable(
{ println("Hello world") },
)
useCallable({ println("Hello world") }) {
}
useCallable(
{ println("Hello world") },
)
useCallable("A", foo() { println("Hello world") })
useCallable(
"B", "C",
foo() {
println("Hello world")
},
foo() {
println("Hello world")
},
)
useCallable(foo() { println("Hello world") })
useCallable(foo() { println("Hello world") })
useCallable(
foo() { println("Hello world") },
)
useCallable(foo() { println("Hello world") }) {
}
useCallable(
foo() { println("Hello world") },
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"A",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
"B", "C",
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
foo() {
println("Hello world")
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
) {
}
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar, /*
*/ /* */
foo,
)
testtest(
/*
*/
foofoo, foofoo, foofoo, /*
*/
foofoo, bar,
)
testtest(
foofoo, foofoo, foofoo, foofoo,
bar,/*
*/
)
testtest(
foofoo, foofoo, foofoo, foofoo, bar, // awdawda
)
testtest(
foofoo, foofoo, foofoo, foofoo, /*
*/
bar,
)
testtest(
foofoo, // fd
)
testtest(
/**/
foofoo,
)
testtest(foofoo/**/)
testtest(
foofoo, foofoo, foofoo,
foofoo,/*
*/ /* */
bar,
)
testtest(
foofoo, // fd
)
testtest(
/**/
foofoo,
)
testtest(foofoo/**/)
testtest(
foofoo, fososos,/*
*/
testtest(testtest(foofoo)),
)
testtest(foofoo, testtest(testtest(foofoo)), /**/testsa)
testtest(foofoo, testtest(testtest(foofoo))/* */, /**/testsa)
testtest(
foofoo,
testtest(testtest(foofoo)),/*
*/
testsa,
)
testtest(foofoo, seee, testtest(testtest(foofoo)), /**/testsa)
testtest(
foofoo, seee, testtest(testtest(foofoo)), /*
*/
testsa,
)
useCallable(
"B", "C",
Callable {
println("Hello world")
}, /* */
Callable {
println("Hello world")
},
)
useCallable(
Callable { println("Hello world") }, // ffd
)
useCallable(
object : Callable<Unit> {
override fun call() {
println("Hello world")
}
},
)
useCallable(
foo() {
println("Hello world")
},
)
useCallable(
{
println("Hello world")
},
)
useCallable(
Callable { println("Hello world") },
)
testtest(
foofoo,
testtest(
testtest(
foofoo,
),
),
testsa,
)
testtest(
foofoo, fososos, testtest(testtest(foofoo)),
)
}
fun test() {
baz(
f = fun(it: Int): String = "$it", /*dwdwd
*/
name = "", /*
*/
)
}
@@ -0,0 +1,479 @@
class A1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class B1 {
val x: String
val y: String
constructor(
x: String,
y: String
) {
this.x = x
this.y = y
}
}
class C1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class D1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class A2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class B2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String
) {
this.x = x
this.y = y
this.z = z
}
}
class C2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class D2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class A3 {
val x: String
constructor(x: String) {
this.x = x
}
}
class B3 {
val x: String
constructor(x: String) {
this.x = x
}
}
class C3 {
val x: String
constructor(
x: String,
) {
this.x = x
}
}
class D3 {
val x: String
constructor(
x: String,
) {
this.x = x
}
}
class E1 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String, z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class E2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String, z: String) {
this.x = x
this.y = y
this.z = z
}
}
class A1(
val x: String,
y: String,
)
class B1(
val x: String,
val y: String
)
class C1(
val x: String,
val y: String,
)
class D1(
val x: String,
val y: String,
)
class A2(
val x: String,
val y: String,
val z: String,
)
class B2(
val x: String,
val y: String,
val z: String
)
class C2(
val x: String,
val y: String,
val z: String,
)
class D2(
val x: String,
val y: String,
val z: String,
)
class A3(
val x: String,
)
class B3(
val x: String
)
class C3(
val x: String,
)
class D3(
val x: String,
)
class A4(
val x: String,
val y: String,
val z: String,
)
class B4(
val x: String,
val y: String,
val z: String
)
class C4(
val x: String,
val y: String,
val z: String,
)
class D4(
val x: String,
val y: String,
val z: String,
)
class E1(
val x: String, val y: String,
val z: String,
)
class E2(
val x: String, val y: String, val z: String
)
class C(
z: String, val v: Int, val x: Int =
42, val y: Int =
42
)
val foo1: (Int, Int) -> Int = fun(
x,
y,
): Int = 42
val foo2: (Int, Int) -> Int = fun(
x,
y
): Int {
return x + y
}
val foo3: (Int, Int) -> Int = fun(
x, y,
): Int {
return x + y
}
val foo4: (Int) -> Int = fun(
x,
): Int = 42
val foo5: (Int) -> Int = fun(
x
): Int = 42
val foo6: (Int) -> Int = fun(x): Int = 42
val foo7: (Int) -> Int = fun(x): Int = 42
val foo8: (Int, Int, Int) -> Int = fun(x, y: Int, z): Int {
return x + y
}
val foo9: (Int, Int, Int) -> Int = fun(
x,
y: Int,
z,
): Int = 42
val foo10: (Int, Int, Int) -> Int = fun(
x,
y: Int,
z: Int
): Int = 43
val foo10 = fun(
x: Int,
y: Int,
z: Int
): Int = 43
val foo11 = fun(
x: Int,
y: Int,
z: Int,
): Int = 43
val foo12 = fun(
x: Int, y: Int, z: Int,
): Int = 43
val foo13 = fun(
x: Int, y: Int, z: Int,
): Int = 43
val foo14 = fun(
x: Int, y: Int, z: Int,
): Int = 43
fun a1(
x: String,
y: String,
) = Unit
fun b1(
x: String,
y: String
) = Unit
fun c1(
x: String,
y: String,
) = Unit
fun d1(
x: String,
y: String,
) = Unit
fun a2(
x: String,
y: String,
z: String,
) = Unit
fun b2(
x: String,
y: String,
z: String
) = Unit
fun c2(
x: String,
y: String,
z: String,
) = Unit
fun d2(
x: String,
y: String,
z: String,
) = Unit
fun a3(
x: String,
) = Unit
fun b3(
x: String
) = Unit
fun c3(
x: String,
) = Unit
fun d3(
x: String,
) = Unit
fun a4(
x: String,
y: String,
z: String,
) = Unit
fun b4(
x: String,
y: String,
z: String
) = Unit
fun c4(
x: String,
y: String,
z: String,
) = Unit
fun d4(
x: String,
y: String,
z: String,
) = Unit
fun foo(
x: Int =
42
) {
}
class C(
val x: Int =
42
)
class G(
val x: String, val y: String
= "", /* */ val z: String
)
class G(
val x: String, val y: String
= "" /* */, /* */ val z: String
)
class H(
val x: String, /*
*/
val y: String,
val z: String,
)
class J(
val x: String, val y: String,
val z: String, /*
*/
)
class K(
val x: String, val y: String,
val z: String,
)
class L(
val x: String, val y: String, val z: String // adwd
)
// SET_TRUE: ALLOW_TRAILING_COMMA
// SET_INT: METHOD_PARAMETERS_WRAP = 1
@@ -0,0 +1,486 @@
class A1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class B1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class C1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class D1 {
val x: String
val y: String
constructor(
x: String,
y: String,
) {
this.x = x
this.y = y
}
}
class A2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class B2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class C2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class D2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String,
z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class A3 {
val x: String
constructor(x: String) {
this.x = x
}
}
class B3 {
val x: String
constructor(x: String) {
this.x = x
}
}
class C3 {
val x: String
constructor(
x: String,
) {
this.x = x
}
}
class D3 {
val x: String
constructor(
x: String,
) {
this.x = x
}
}
class E1 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String, z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class E2 {
val x: String
val y: String
val z: String
constructor(
x: String,
y: String, z: String,
) {
this.x = x
this.y = y
this.z = z
}
}
class A1(
val x: String,
y: String,
)
class B1(
val x: String,
val y: String,
)
class C1(
val x: String,
val y: String,
)
class D1(
val x: String,
val y: String,
)
class A2(
val x: String,
val y: String,
val z: String,
)
class B2(
val x: String,
val y: String,
val z: String,
)
class C2(
val x: String,
val y: String,
val z: String,
)
class D2(
val x: String,
val y: String,
val z: String,
)
class A3(
val x: String,
)
class B3(
val x: String,
)
class C3(
val x: String,
)
class D3(
val x: String,
)
class A4(
val x: String,
val y: String,
val z: String,
)
class B4(
val x: String,
val y: String,
val z: String,
)
class C4(
val x: String,
val y: String,
val z: String,
)
class D4(
val x: String,
val y: String,
val z: String,
)
class E1(
val x: String, val y: String,
val z: String,
)
class E2(
val x: String, val y: String, val z: String,
)
class C(
z: String, val v: Int,
val x: Int =
42,
val y: Int =
42,
)
val foo1: (Int, Int) -> Int = fun(
x,
y,
): Int = 42
val foo2: (Int, Int) -> Int = fun(
x,
y,
): Int {
return x + y
}
val foo3: (Int, Int) -> Int = fun(
x, y,
): Int {
return x + y
}
val foo4: (Int) -> Int = fun(
x,
): Int = 42
val foo5: (Int) -> Int = fun(
x,
): Int = 42
val foo6: (Int) -> Int = fun(x): Int = 42
val foo7: (Int) -> Int = fun(x): Int = 42
val foo8: (Int, Int, Int) -> Int = fun(x, y: Int, z): Int {
return x + y
}
val foo9: (Int, Int, Int) -> Int = fun(
x,
y: Int,
z,
): Int = 42
val foo10: (Int, Int, Int) -> Int = fun(
x,
y: Int,
z: Int,
): Int = 43
val foo10 = fun(
x: Int,
y: Int,
z: Int,
): Int = 43
val foo11 = fun(
x: Int,
y: Int,
z: Int,
): Int = 43
val foo12 = fun(
x: Int, y: Int, z: Int,
): Int = 43
val foo13 = fun(
x: Int, y: Int, z: Int,
): Int = 43
val foo14 = fun(
x: Int, y: Int, z: Int,
): Int = 43
fun a1(
x: String,
y: String,
) = Unit
fun b1(
x: String,
y: String,
) = Unit
fun c1(
x: String,
y: String,
) = Unit
fun d1(
x: String,
y: String,
) = Unit
fun a2(
x: String,
y: String,
z: String,
) = Unit
fun b2(
x: String,
y: String,
z: String,
) = Unit
fun c2(
x: String,
y: String,
z: String,
) = Unit
fun d2(
x: String,
y: String,
z: String,
) = Unit
fun a3(
x: String,
) = Unit
fun b3(
x: String,
) = Unit
fun c3(
x: String,
) = Unit
fun d3(
x: String,
) = Unit
fun a4(
x: String,
y: String,
z: String,
) = Unit
fun b4(
x: String,
y: String,
z: String,
) = Unit
fun c4(
x: String,
y: String,
z: String,
) = Unit
fun d4(
x: String,
y: String,
z: String,
) = Unit
fun foo(
x: Int =
42,
) {
}
class C(
val x: Int =
42,
)
class G(
val x: String,
val y: String
= "", /* */
val z: String,
)
class G(
val x: String,
val y: String
= "", /* */ /* */
val z: String,
)
class H(
val x: String, /*
*/
val y: String,
val z: String,
)
class J(
val x: String, val y: String,
val z: String, /*
*/
)
class K(
val x: String, val y: String,
val z: String,
)
class L(
val x: String, val y: String, val z: String, // adwd
)
// SET_TRUE: ALLOW_TRAILING_COMMA
// SET_INT: METHOD_PARAMETERS_WRAP = 1