Introduce "Call chain on collection should be converted into 'Sequence'"
So #KT-15476 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
76a98c8e67
commit
108dea5b46
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>): Int {
|
||||
return list // comment1
|
||||
.<caret>filter { it > 1 } // comment2
|
||||
.map { it * 2 } // comment3
|
||||
.sum() // comment4
|
||||
}
|
||||
Reference in New Issue
Block a user