Skip to content

Commit e0e1b94

Browse files
committed
Fix rendering bug in arrow TypesSupport
We should not propagate the capture status beyond the current arrow. Under a capture context, types are rendered plainly.
1 parent 678f76d commit e0e1b94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ trait TypesSupport:
341341
import reflect._
342342
val arrow = if t.isContextFunctionType then keyword(" ?=> ").l // FIXME: can we have contextual functions with capture sets?
343343
else plain(" ") :: (renderCaptureArrow(inCC) ++ plain(" ").l)
344+
given Option[List[TypeRepr]] = None
344345
args match
345346
case Nil => Nil
346347
case List(rtpe) => plain("()").l ++ arrow ++ inner(rtpe)

0 commit comments

Comments
 (0)