Skip to content

Commit 705fe5f

Browse files
committed
Scaladoc fix: don't drop caps on parameters
1 parent f00c987 commit 705fe5f

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
@@ -535,6 +535,7 @@ trait TypesSupport:
535535
private def isCapturedInContext(using Quotes)(ref: reflect.TypeRepr)(using elideThis: reflect.ClassDef): Boolean =
536536
import reflect._
537537
ref match
538+
case t if t.isCaptureRoot => true
538539
case ReachCapability(c) => isCapturedInContext(c)
539540
case ReadOnlyCapability(c) => isCapturedInContext(c)
540541
case ThisType(tr) => !elideThis.symbol.typeRef.isPureClass(elideThis) /* is the current class pure? */

0 commit comments

Comments
 (0)