15 lines
299 B
Kotlin
Vendored
15 lines
299 B
Kotlin
Vendored
// !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)
|
|
}
|