// RUN_PIPELINE_TILL: FRONTEND
// DIAGNOSTICS: -UNUSED_PARAMETER

fun foo(s: String) {}
fun foo(i: Long) {}

fun bar(f: (Boolean) -> Unit) {}

fun test() {
    bar(::<!NONE_APPLICABLE!>foo<!>)
}

/* GENERATED_FIR_TAGS: functionDeclaration, functionalType */
