blob: 405c36c77b35d38920f7b5e0ad6ef63a059215c1 [file]
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-68531
enum class Some {
A {
init {
<!VAL_REASSIGNMENT, VAL_REASSIGNMENT!>A<!> = null!!
<!VAL_REASSIGNMENT, VAL_REASSIGNMENT!>B<!> = null!!
}
},
B {
init {
<!VAL_REASSIGNMENT!>A<!> = null!!
<!VAL_REASSIGNMENT!>B<!> = null!!
}
};
init {
<!INITIALIZATION_BEFORE_DECLARATION!>A<!> = null!!
<!INITIALIZATION_BEFORE_DECLARATION!>B<!> = null!!
}
}
fun test() {
<!VAL_REASSIGNMENT!>Some.A<!> = null!!
<!VAL_REASSIGNMENT!>Some.B<!> = null!!
}
/* GENERATED_FIR_TAGS: assignment, checkNotNullCall, enumDeclaration, enumEntry, functionDeclaration, init */