16 lines
230 B
Kotlin
Vendored
16 lines
230 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +SuspendConversion
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun interface SuspendRunnable {
|
|
suspend fun invoke()
|
|
}
|
|
|
|
fun foo(s: SuspendRunnable) {}
|
|
|
|
fun test(f: () -> Unit) {
|
|
foo { }
|
|
foo(f)
|
|
}
|
|
|