Files
kotlin-fork/compiler/testData/diagnostics/tests/suspendConversion/severalConversionsInOneCall.kt
T
2020-09-10 11:31:24 +03:00

13 lines
296 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +SuspendConversion
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(f: () -> String, g: suspend () -> String, h: suspend () -> String) {}
fun test(f: () -> String, g: suspend () -> String) {
foo(f, f, f)
foo(f, { "str" }, f)
foo(f, f, g)
foo(f, g, g)
}