Skip to content

Commit e709a7f

Browse files
Backport "Scaladoc cc: don't eagerly drop caps on parameters" to 3.7.4 (#23983)
Backports #23759 to the 3.7.4. PR submitted by the release tooling. [skip ci]
2 parents 016ea8a + 3101ac7 commit e709a7f

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

0 commit comments

Comments
 (0)