This is the test, but it actually fail properly al...
# coroutines
e
This is the test, but it actually fail properly albeit with a non-intuitive message (cannot really reproduce your problem yet):
Copy code
class X {
    val s: AsyncIterator<Int> = asyncGenerate<Int> { t.next() }.iterator()
    val t: AsyncIterator<Int> = asyncGenerate<Int> { s.next() }.iterator()
}

fun main(args: Array<String>) {
    async { X().s.next() }.get()
}