From 6459ec0493241336c9db8dc6d53abce17f3126cd Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 15:29:55 +0100 Subject: in a qualified name, when we've reached a class, resolve lower-level members in the member scope of the class, not in its outer scope (otherwise we sometimes show a wrong function in @sample instead of showing that it's unresolved) --- src/Kotlin/ContentBuilder.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit