https://kotlinlang.org logo
#random
Title
j

jkbbwr

07/27/2016, 1:45 PM
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)
        }
    }
}