// RUN_PIPELINE_TILL: BACKEND
// LANGUAGE: +EnumEntries +PrioritizedEnumEntries
// WITH_STDLIB
// FIR_DUMP

enum class E {
    ;

    val entries: Int = 0
}

fun test() {
    E::entries
    val ref = E::entries
    val refType: (E) -> Int = E::entries
    val refTypeWithAnyExpectedType: Any = E::entries
}

/* GENERATED_FIR_TAGS: callableReference, enumDeclaration, functionDeclaration, functionalType, integerLiteral,
localProperty, propertyDeclaration */
