Skip to content

Scaladoc Tests for CC#25277

Merged
bracevac merged 1 commit intoscala:mainfrom
dotty-staging:cc-scaladoc-tests
Feb 16, 2026
Merged

Scaladoc Tests for CC#25277
bracevac merged 1 commit intoscala:mainfrom
dotty-staging:cc-scaladoc-tests

Conversation

@bracevac
Copy link
Contributor

This should catch rendering issues while evolving the capture checker.

Fixes #24783

Based on #25057

@bracevac bracevac requested a review from natsukagami February 15, 2026 02:59
- Add comprehensive CaptureCheckingSignatures test covering arrows,
  context functions, by-name, path-dependent captures, reach, consume,
  fresh, .rd, .only[Classifier], Mutable/Stateful/Separate, capture-set
  variables with bounds, and capability members
- Fix fresh/OnlyCapability being stripped from rendered capture sets
  (missing cases in isCapturedInContext)
- Fix dependent function types with fresh in result not preserving
  named params and pure arrow (e.g. (x: AnyRef^) -> AnyRef^{fresh})
- Render ^ on capture-set type members (type Cap^)
Comment on lines +500 to +501
val sig = tpeTree.asSignature(classDef, symbol.owner)
val sigWithCaret = if isCaptureVar then Plain("^") :: sig else sig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: This seems to be the bounds of the members, so this is more like prepending to >: Lower <: Upper to make ^ >: Lower <: Upper

@bracevac bracevac merged commit b68b149 into scala:main Feb 16, 2026
59 checks passed
@bracevac bracevac deleted the cc-scaladoc-tests branch February 16, 2026 12:05
@WojciechMazur WojciechMazur added this to the 3.8.3 milestone Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scaladoc: Test suite for CC

3 participants

Comments