Anyone know why im getting errors Error:(8, 15) K...
# random
j
Anyone know why im getting errors Error:(8, 15) Kotlin: The integer literal does not conform to the expected type Continuation<Unit> with
Copy code
import kotlinx.coroutines.*

fun main(args: Array<String>) {
    val sequence = generate<Int> {
        for (i in 1..5) {
            yield(i)
        }
    }
}