aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt
index 778d1458..3bc1690b 100644
--- a/core/src/main/kotlin/model/Documentable.kt
+++ b/core/src/main/kotlin/model/Documentable.kt
@@ -155,7 +155,7 @@ data class Class(
WithExtraProperties<Class> {
override val children: List<Documentable>
- get() = (functions + properties + classlikes + listOfNotNull(companion) + constructors) as List<Documentable>
+ get() = (functions + properties + classlikes + constructors) as List<Documentable>
override fun withNewExtras(newExtras: PropertyContainer<Class>) = copy(extra = newExtras)
}
@@ -235,7 +235,7 @@ data class Interface(
override val extra: PropertyContainer<Interface> = PropertyContainer.empty()
) : Classlike(), WithCompanion, WithGenerics, WithSupertypes, WithExtraProperties<Interface> {
override val children: List<Documentable>
- get() = (functions + properties + classlikes + listOfNotNull(companion)) as List<Documentable>
+ get() = (functions + properties + classlikes) as List<Documentable>
override fun withNewExtras(newExtras: PropertyContainer<Interface>) = copy(extra = newExtras)
}