Files
Dmitry Gridin b8021b5e28 Fix tests after disabling trailing comma
#KT-34744

GitOrigin-RevId: fba2b467e39d334a9bf47a9486c39836e285b297
2020-02-04 17:34:53 +03:00

55 lines
716 B
Kotlin

import java.util.ArrayList
fun test() {
val abc = ArrayList<Int>()
.map {
it * 2
}
.filter {
it > 4
}
}
fun test1() {
val abc = ArrayList<Int>()
.map({
it * 2
})
.filter({
it > 4
})
}
fun test2() {
val abc = ArrayList<Int>()
.map {
it * 2
}
}
fun test3() {
val abc = ArrayList<Int>().map {
it * 2
}
}
fun test4() {
val abc = ArrayList<Int>().mapTo(
LinkedHashSet()
) {
it * 2
}
}
fun testWithComments() {
val abc = ArrayList<Int>()
// .map {
// it * 2
// }
.filter {
it > 4
}
}
// SET_TRUE: CONTINUATION_INDENT_FOR_CHAINED_CALLS
// SET_TRUE: ALLOW_TRAILING_COMMA