diff options
-rw-r--r-- | src/Kotlin/ContentBuilder.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt index de5ac956..56d2a407 100644 --- a/src/Kotlin/ContentBuilder.kt +++ b/src/Kotlin/ContentBuilder.kt @@ -175,7 +175,10 @@ private fun DocumentationBuilder.resolveInScope(functionName: String, scope: Jet symbol = null break } - currentScope = getResolutionScope(session, partSymbol) + currentScope = if (partSymbol is ClassDescriptor) + partSymbol.getDefaultType().getMemberScope() + else + getResolutionScope(session, partSymbol) symbol = partSymbol } |