Call chain --> Sequence: take termination into account

Related to KT-15476
This commit is contained in:
Toshiaki Kameyama
2018-07-02 13:20:26 +03:00
committed by Mikhail Glukhikh
parent 108dea5b46
commit 7e28cb1fe3
146 changed files with 1117 additions and 72 deletions
@@ -2,5 +2,8 @@
// WITH_RUNTIME
fun test(list: List<Int>): List<Int> {
return list.filter { it > 2 }.dropLast(1).<caret>filter { it > 2 }
return list
.filter { it > 2 }
.dropLast(1)
.<caret>filter { it > 2 }
}