[NI] Fix checking for the same instance inside for suspend functions
This commit is contained in:
Vendored
+18
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user