Format functions with function literal arguments (KT-2934)

#KT-2934 Fixed
This commit is contained in:
Nikolay Krasko
2014-05-02 01:53:20 +04:00
parent eeea34ec9e
commit 109f7992b4
9 changed files with 317 additions and 5 deletions
@@ -0,0 +1,45 @@
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
}
}