K1: add support for Enum.entries synthetic property (see KT-48872)
#KT-53270 Fixed
This commit is contained in:
+3
@@ -36,5 +36,8 @@ interface DeserializationConfiguration {
|
||||
val preserveDeclarationsOrdering: Boolean
|
||||
get() = false
|
||||
|
||||
val supportEnumEntries: Boolean
|
||||
get() = false
|
||||
|
||||
object Default : DeserializationConfiguration
|
||||
}
|
||||
|
||||
+6
-1
@@ -52,7 +52,12 @@ class DeserializedClassDescriptor(
|
||||
VersionRequirementTable.create(classProto.versionRequirementTable), metadataVersion
|
||||
)
|
||||
|
||||
private val staticScope = if (kind == ClassKind.ENUM_CLASS) StaticScopeForKotlinEnum(c.storageManager, this) else MemberScope.Empty
|
||||
private val staticScope =
|
||||
if (kind == ClassKind.ENUM_CLASS)
|
||||
StaticScopeForKotlinEnum(c.storageManager, this, c.components.configuration.supportEnumEntries)
|
||||
else
|
||||
MemberScope.Empty
|
||||
|
||||
private val typeConstructor = DeserializedClassTypeConstructor()
|
||||
|
||||
private val memberScopeHolder =
|
||||
|
||||
Reference in New Issue
Block a user