// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-77149

fun foo() {
    abstract class ShorteningProcessor<TElement> {
        fun analyzeCollectedElements() = E.A == E.A

        <!WRONG_MODIFIER_TARGET!>enum<!> class E {
            A;
        }
    }
}

/* GENERATED_FIR_TAGS: classDeclaration, enumDeclaration, enumEntry, equalityExpression, functionDeclaration, localClass,
nestedClass, nullableType, typeParameter */
