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