From 31692499975f071dce028c8912d3a80ea6019aca Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 2 Mar 2015 14:43:24 +0100 Subject: linkify type names in type parameter constraints --- src/Kotlin/DocumentationBuilder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index e09d35bd..14ba94be 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -494,13 +494,13 @@ class DocumentationBuilder(val session: ResolveSession, for (constraint in getUpperBounds()) { if (constraint == builtIns.getDefaultBound()) continue - node.appendTextNode(constraint.toString(), DocumentationNode.Kind.UpperBound) + node.appendType(constraint, Kind.UpperBound) } for (constraint in getLowerBounds()) { if (KotlinBuiltIns.isNothing(constraint)) continue - node.appendTextNode(constraint.toString(), DocumentationNode.Kind.LowerBound) + node.appendType(constraint, Kind.LowerBound) } return node } -- cgit