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

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