[Commonizer] Ignore constructors for enum entries

This commit is contained in:
Dmitriy Dolovov
2021-01-31 21:43:04 +03:00
parent dfd1a53624
commit 55c37183d9
@@ -218,7 +218,11 @@ class CirTreeMerger(
val functions: MutableMap<FunctionApproximationKey, CirFunctionNode> = classNode.functions
val nestedClasses: MutableMap<Name, CirClassNode> = classNode.classes
classDescriptor.constructors.forEach { processClassConstructor(constructors, targetIndex, it, parentCommonDeclarationForMembers) }
if (classDescriptor.kind != ClassKind.ENUM_ENTRY) {
classDescriptor.constructors.forEach { constructorDescriptor ->
processClassConstructor(constructors, targetIndex, constructorDescriptor, parentCommonDeclarationForMembers)
}
}
classDescriptor.unsubstitutedMemberScope.collectMembers(
PropertyCollector { propertyDescriptor ->