IR: fix origin of default getter of Enum.entries synthetic property

This commit is contained in:
Mikhail Glukhikh
2022-08-16 12:05:08 +02:00
committed by Space
parent 28c83e43ad
commit 8a4105e542
9 changed files with 15 additions and 13 deletions
@@ -94,7 +94,7 @@ class EnumClassMembersGenerator(declarationGenerator: DeclarationGenerator) : De
).also { irProperty ->
irProperty.getter = context.symbolTable.declareSimpleFunctionWithOverrides(
SYNTHETIC_OFFSET, SYNTHETIC_OFFSET,
IrDeclarationOrigin.DEFAULT_PROPERTY_ACCESSOR,
IrDeclarationOrigin.ENUM_CLASS_SPECIAL_MEMBER,
entriesProperty.getter!!
).also { getter ->
getter.correspondingPropertySymbol = irProperty.symbol