Call chain into sequence: add 'unzip' to conversion targets #KT-27486 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-10-11 12:49:39 +09:00
committed by Mikhail Glukhikh
parent 3f252b15e1
commit dc750cdbb3
4 changed files with 17 additions and 1 deletions
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun test() {
val pair: Pair<List<Int>, List<Int>> = listOf(1 to 2, 3 to 4).<caret>filter { it.first > 1 }.filter { it.second > 2 }.unzip()
}
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun test() {
val pair: Pair<List<Int>, List<Int>> = listOf(1 to 2, 3 to 4).asSequence().filter { it.first > 1 }.filter { it.second > 2 }.unzip()
}