c34b417d0c
#KT-34744
55 lines
716 B
Kotlin
Vendored
55 lines
716 B
Kotlin
Vendored
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 |