pniederw
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 }