Option to use normal indent in chained calls
#KT-18605 Fixed
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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 testWithComments() {
|
||||
val abc = ArrayList<Int>()
|
||||
// .map {
|
||||
// it * 2
|
||||
// }
|
||||
.filter {
|
||||
it > 4
|
||||
}
|
||||
}
|
||||
|
||||
// SET_TRUE: CONTINUATION_INDENT_FOR_CHAINED_CALLS
|
||||
Reference in New Issue
Block a user