// RUN_PIPELINE_TILL: FRONTEND
//no nested class access via instance reference error
fun test() {
    A.Companion.f(<!TYPE_MISMATCH!>""<!>)
}

class A() {
    companion object {
        object f {
            operator fun invoke(i: Int) = i
        }
    }
}

/* GENERATED_FIR_TAGS: classDeclaration, companionObject, functionDeclaration, nestedClass, objectDeclaration, operator,
primaryConstructor, stringLiteral */
