diff options
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index 5f2d08f9..f922a25b 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -152,10 +152,9 @@ class DocumentationBuilder fun DocumentationNode.appendType(kotlinType: KotlinType?, kind: NodeKind = NodeKind.Type, prefix: String = "") { if (kotlinType == null) return - if (kotlinType is WrappedType) - return appendType(kotlinType.unwrap()) - if (kotlinType is AbbreviatedType) - return appendType(kotlinType.abbreviation) + (kotlinType.unwrap() as? AbbreviatedType)?.let { + return appendType(it.abbreviation) + } val classifierDescriptor = kotlinType.constructor.declarationDescriptor val name = when (classifierDescriptor) { |