fix some tests for as36

This commit is contained in:
Dmitry Gridin
2020-05-08 19:07:55 +07:00
parent ad09eb5416
commit 50506658c0
22 changed files with 319 additions and 0 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun test(list: List<Int>) {
val mapIndexedTo: MutableList<Int> = list.asSequence().filter { it > 1 }
.mapIndexedTo(mutableListOf()) { index, i -> i }
}
@@ -0,0 +1,6 @@
// 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()
}