Introduce "Call chain on collection should be converted into 'Sequence'"

So #KT-15476 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-06-29 18:52:14 +03:00
committed by Mikhail Glukhikh
parent 76a98c8e67
commit 108dea5b46
42 changed files with 668 additions and 0 deletions
@@ -0,0 +1,11 @@
// WITH_RUNTIME
fun test(foo: Foo): List<Int> {
return foo.getList()
.<caret>filter { it > 1 }
.map { it * 2 }
}
class Foo {
fun getList(): List<Int> = listOf(1, 2, 3)
}