aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/Generation/DocumentationMerger.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Generation/DocumentationMerger.kt b/core/src/main/kotlin/Generation/DocumentationMerger.kt
index f6280fb9..e5186e72 100644
--- a/core/src/main/kotlin/Generation/DocumentationMerger.kt
+++ b/core/src/main/kotlin/Generation/DocumentationMerger.kt
@@ -130,7 +130,7 @@ class DocumentationMerger(
val nodeWithMaxPlatforms = nodes.maxBy { it.platforms.size }!!
val maxPlatforms = nodeWithMaxPlatforms.platforms.toSet()
val notContained = nodes.filterNot { maxPlatforms.containsAll(it.platforms) }
- val reducedDuplicates = notContained + nodeWithMaxPlatforms
+ val reducedDuplicates = listOf(nodeWithMaxPlatforms) + notContained
if (!reducedDuplicates.containsAll(nodes)) {
return mergeMembersWithEqualSignature(signature, reducedDuplicates)
}