// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-61182

object Foo

operator fun Foo.invoke(f: () -> Unit) {
    f()
}

fun test(g: () -> Int) {
    Foo(<!ARGUMENT_TYPE_MISMATCH!>g<!>)
}

/* GENERATED_FIR_TAGS: funWithExtensionReceiver, functionDeclaration, functionalType, objectDeclaration, operator */
