``` class X { fun s(): Iterator<Int> = gene...
# coroutines
d
Copy code
class X {
	fun s(): Iterator<Int> = generate<Int> { t().next() }.iterator()
	fun t(): Iterator<Int> = generate<Int> { s().next() }.iterator()
}

@Test
fun syncGenerateBug() {
	sync { X().s().next() }
}
fails too