diff --git a/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt b/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt index fb7d28042b7..c1fbe569471 100644 --- a/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt +++ b/native/commonizer/src/org/jetbrains/kotlin/commonizer/tree/assembelCirTree.kt @@ -28,8 +28,8 @@ internal fun CirPackageNode.assembleCirTree(): CirTreePackage? { return CirTreePackage( pkg = commonizedPackage, - properties = properties.mapNotNull { (key, property) -> property.commonDeclaration() }, - functions = functions.mapNotNull { (key, function) -> function.commonDeclaration() }, + properties = properties.mapNotNull { (_, property) -> property.commonDeclaration() }, + functions = functions.mapNotNull { (_, function) -> function.commonDeclaration() }, typeAliases = commonizedTypeAliases.filterIsInstance(), classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() } + commonizedTypeAliases.filterIsInstance() ) @@ -39,9 +39,9 @@ internal fun CirClassNode.assembleCirTree(): CirTreeClass? { return CirTreeClass( id = id, clazz = commonDeclaration() ?: return null, - properties = properties.mapNotNull { (key, property) -> property.commonDeclaration() }, - functions = functions.mapNotNull { (key, function) -> function.commonDeclaration() }, - constructors = constructors.mapNotNull { (key, constructor) -> constructor.commonDeclaration() }, + properties = properties.mapNotNull { (_, property) -> property.commonDeclaration() }, + functions = functions.mapNotNull { (_, function) -> function.commonDeclaration() }, + constructors = constructors.mapNotNull { (_, constructor) -> constructor.commonDeclaration() }, classes = classes.mapNotNull { (_, clazz) -> clazz.assembleCirTree() } ) }