Files
kotlin-fork/compiler/testData/ir/irText/firProblems/LocalSuspendFun.kt
T

16 lines
299 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: ANY
// Ignore reasons: anonymous suspend functions are prohibited, KT-62018
// ISSUE: KT-58332
fun foo() {
val addNewStatusAction: suspend () -> Unit = useMemo {
suspend fun() {
}
}
}
fun <T> useMemo(callback: () -> T): T {
return callback()
}