Skip to content

Commit 5409db1

Browse files
committed
Use ClassDef.supertypes in Scaladoc
1 parent 6dde4b1 commit 5409db1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scaladoc/src/dotty/tools/scaladoc/tasty/ClassLikeSupport.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ trait ClassLikeSupport:
7979
Seq(link -> superLink) ++ getSupertypesGraph(tree, superLink)
8080
}
8181

82-
val supertypes = getSupertypes(using qctx)(classDef).map {
82+
val supertypes = classDef.supertypes
83+
.map(t => t.typeSymbol -> t)
84+
.map {
8385
case (symbol, tpe) =>
8486
LinkToType(tpe.asSignature, symbol.dri, bareClasslikeKind(symbol))
8587
}

0 commit comments

Comments
 (0)