https://kotlinlang.org logo
o

okkero

01/18/2017, 2:09 PM
Copy code
fun main(args: Array<String>) {
    val f = ::foo
}

suspend fun foo() {

}
This doesn't compile stating that "Suspend functions are only allowed to be called from a coroutine or another suspend function"