// RUN_PIPELINE_TILL: FRONTEND
class A {
    companion object Comp {}

    fun foo() {
        <!UNRESOLVED_REFERENCE!>Comp<!>()
    }
}

object B {
    private val x = <!UNRESOLVED_REFERENCE!>B<!>()
}

class D {
    companion object Comp2 {
        operator fun invoke() {}
    }

    fun foo() {
        Comp2()
    }
}

enum class E {
    X {

    };

    fun foo() {
        <!UNRESOLVED_REFERENCE!>X<!>()
    }
}

/* GENERATED_FIR_TAGS: classDeclaration, companionObject, enumDeclaration, enumEntry, functionDeclaration,
objectDeclaration, operator, propertyDeclaration */
