blob: 470b5ac7d47cd07f33e8dd569558ebc2f3659950 [file] [log] [blame]
// !LANGUAGE: +UnitConversionsOnArbitraryExpressions +SuspendConversion
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
fun foo(f: suspend () -> Unit) {}
fun bar(): String = ""
abstract class SubInt : () -> Int
fun test(g: () -> Double, s: SubInt) {
foo(::bar)
foo(g)
foo(s)
}