backend: Use IrComposite instead of IrBlock in headers of 'for' loops

This commit is contained in:
Ilya Matveev
2017-07-19 18:16:38 +07:00
committed by ilmat192
parent c4acdf1b25
commit 0ddc002b8d
3 changed files with 48 additions and 6 deletions
@@ -0,0 +1,12 @@
import kotlin.coroutines.experimental.*
fun main(args: Array<String>) {
val sq = buildSequence {
for (i in 0..6 step 2) {
print("before: $i ")
yield(i)
println("after: $i")
}
}
println("Got: ${sq.joinToString(separator = " ")}")
}