diff options
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index 967c20ca..b1a5903e 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -486,6 +486,10 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, } fun FunctionDescriptor.build(): DocumentationNode { + if (ErrorUtils.containsErrorType(this)) { + logger.warn("Found an unresolved type in ${signatureWithSourceLocation()}") + } + val node = DocumentationNode(this, if (inCompanionObject()) Kind.CompanionObjectFunction else Kind.Function) node.appendInPageChildren(getTypeParameters(), DocumentationReference.Kind.Detail) |