Suspend function reference as parameter of let gets error

前端 未结 0 1316
小蘑菇
小蘑菇 2020-12-31 16:31

Why Kotlin can\'t reference to suspend function as the parameter of let/also and other functions?

class X

fun a(x: X) {}
suspend fun b(x: X) {}

X().let(::a)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题