I keep running into the following. expected? ``` ...
# coroutines
p
I keep running into the following. expected?
Copy code
fun test(f: suspend () -> Unit) {}

fun main() {
  test({ println("hi") }) // ok
  
  val f = { println("hi") }
  test(f) // required: suspend () -> Unit, found: () -> Unit
  
  // workaround
  test({ f() }) // ok
}