[FIR] Add enum entry to body resolve context containers
This fixes processing of annotations on enum entries. Before, the check in BodyResolveContext.forAnnotation would set the tower data mode to CLASS_HEADER_ANNOTATIONS because no containers were present. This would lead to some tower data elements like nested classifiers missing, which would lead to false positive unresolved references. #KT-63761 Fixed
This commit is contained in:
committed by
Space Team
parent
bb5e219c1d
commit
06811dfc2f
+1
-1
@@ -441,7 +441,7 @@ private class ContextCollectorVisitor(
|
||||
onActiveBody {
|
||||
enumEntry.lazyResolveToPhase(FirResolvePhase.BODY_RESOLVE)
|
||||
|
||||
context.forEnumEntry {
|
||||
context.withEnumEntry(enumEntry) {
|
||||
dumpContext(enumEntry, ContextKind.BODY)
|
||||
|
||||
onActive {
|
||||
|
||||
Reference in New Issue
Block a user