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