Skip to content

Make caps.Capability non-experimental #23507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

natsukagami
Copy link
Contributor

Closes #22745.

Make scala.caps.Capability non-experimental.

The Capability trait can be used as a marker trait even outside of capture-checking.
Only when capture checking is enabled, the trait carries a special meaning, marking each instance a top-level capability.

Other definitions inside the scala.caps package (the package is already non-experimental) stays experimental
and can only be used with -experimental or with capture-checking enabled (with an import or with the feature flag).

@odersky odersky added the needs-minor-release This PR cannot be merged until the next minor release label Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-minor-release This PR cannot be merged until the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop @experimental for scala.caps.Capability
2 participants