Formatter: support trailing comma in value arguments

#KT-34744
This commit is contained in:
Dmitry Gridin
2019-12-25 18:31:30 +07:00
parent 13ae4a28a8
commit c195cd46f2
70 changed files with 9829 additions and 1575 deletions
@@ -12,12 +12,16 @@ fun test() {
fun test1() {
val abc = ArrayList<Int>()
.map({
it * 2
})
.filter({
it > 4
})
.map(
{
it * 2
},
)
.filter(
{
it > 4
},
)
}
fun test2() {
@@ -35,7 +39,7 @@ fun test3() {
fun test4() {
val abc = ArrayList<Int>().mapTo(
LinkedHashSet()
LinkedHashSet(),
) {
it * 2
}