[NI] Fix checking for the same instance inside for suspend functions

This commit is contained in:
Mikhail Zarechenskiy
2018-05-04 16:21:17 +03:00
parent 64b10d827d
commit b23e9f771b
9 changed files with 79 additions and 7 deletions
@@ -0,0 +1,18 @@
// WITH_RUNTIME
// WITH_COROUTINES
// COMMON_COROUTINES_TEST
import helpers.*
import COROUTINES_PACKAGE.*
import COROUTINES_PACKAGE.intrinsics.*
val f = run {
buildSequence {
if (true) {
yield("OK")
}
}.toList()
}
fun box(): String {
return f[0]
}