Skip to content

Commit a57756d

Browse files
committed
Fix displaying F-bounds in inheritance
1 parent 069875d commit a57756d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ trait TypesSupport:
9999
inner(tpe) :+ text("*")
100100
case AnnotatedType(tpe, _) =>
101101
inner(tpe)
102+
case tl @ TypeLambda(params, paramBounds, resType@AppliedType(tpe, args))
103+
if paramBounds.map(inner).forall(_.isEmpty) && params.zip(args.map(inner)).forall(List(_) == _) =>
104+
inner(tpe)
102105
case tl @ TypeLambda(params, paramBounds, resType) =>
103106
texts("[") ++ commas(params.zip(paramBounds).map { (name, typ) =>
104107
val normalizedName = if name.matches("_\\$\\d*") then "_" else name

0 commit comments

Comments
 (0)