[LL FIR] fix status resolution of static enum members
Before, BODY_RESOLVE phase were used for them but status may be unresolved. This caused CCE on accessing resolved status for such static enum members. Now, those declarations are created with the status of owning enum as the status is taken from that class.
This commit is contained in:
@@ -245,6 +245,7 @@ abstract class FirJavaFacade(
|
||||
val classIsAnnotation = javaClass.classKind == ClassKind.ANNOTATION_CLASS
|
||||
val moduleData = getModuleDataForClass(javaClass)
|
||||
return buildJavaClass {
|
||||
resolvePhase = FirResolvePhase.BODY_RESOLVE
|
||||
source = javaClass.toSourceElement()
|
||||
this.moduleData = moduleData
|
||||
symbol = classSymbol
|
||||
|
||||
Reference in New Issue
Block a user