diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-05-25 15:01:31 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-26 11:33:18 +0200 |
commit | 4d5a0ebc3045b51385056e57e9a0ce4108729072 (patch) | |
tree | 1d6c078b84c0aa7fe3be7a9fd0c59c00d8d8567c /plugins/base/src/main | |
parent | 2ef03aa5074e35bb831b5fcfd8a0e88dfe45cd7c (diff) | |
download | dokka-4d5a0ebc3045b51385056e57e9a0ce4108729072.tar.gz dokka-4d5a0ebc3045b51385056e57e9a0ce4108729072.tar.bz2 dokka-4d5a0ebc3045b51385056e57e9a0ce4108729072.zip |
Fixes multiple actual annotations bug
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt b/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt index 80d01780..1b65fc22 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/ActualTypealiasAdder.kt @@ -66,11 +66,7 @@ class ActualTypealiasAdder : DocumentableTransformer { elements.map { element -> if (element.expectPresentInSet != null) { typealiases[element.dri]?.let { ta -> - element.withNewExtras( - element.extra + ActualTypealias( - mapOf(ta.sourceSets.single() to ta.underlyingType.values.single()) - ) - ).let { + element.withNewExtras(element.extra + ActualTypealias(ta.underlyingType)).let { when(it) { is DClass -> it.copy(sourceSets = element.sourceSets + ta.sourceSets) is DEnum -> it.copy(sourceSets = element.sourceSets + ta.sourceSets) |