Files
kotlin-fork/compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt
T
2024-02-20 12:52:08 +00:00

18 lines
255 B
Kotlin
Vendored

// !LANGUAGE: +SuspendConversion
// IGNORE_BACKEND: JVM
fun interface SuspendRunnable {
suspend fun invoke()
}
fun foo(s: SuspendRunnable) {}
fun test(f: () -> Unit) {
foo { }
foo(f)
}
fun box(): String {
test({ "" })
return "OK"
}