Skip to content

Backport "Rule Out Exports of Member of the Current Class" to 3.3 LTS #245

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

Merged
merged 3 commits into from
Apr 22, 2025

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Apr 22, 2025

Backports scala#22545 to the 3.3.7.

PR submitted by the release tooling.

bracevac and others added 3 commits April 22, 2025 10:51
A member that is visible through inheritance or mixin
should not be eligible for `export`.

We perform the `derivesFrom` check in `canForward`
now on the self-type of the exporting class to detect
such cycles through mixins.

Co-authored-by: Jan-Pieter van den Heuvel <[email protected]>
Co-authored-by: Willem W Bakker <[email protected]>
Co-authored-by: odersky <[email protected]>

[Cherry-picked 5e8eb74]
Base automatically changed from backport-lts-3.3-22582 to lts-3.3 April 22, 2025 13:21
@tgodzik
Copy link
Author

tgodzik commented Apr 22, 2025

No regressions detected in the community build up to backport-lts-3.3-22545.

Reference

@tgodzik tgodzik merged commit 6f36dea into lts-3.3 Apr 22, 2025
22 checks passed
@tgodzik tgodzik deleted the backport-lts-3.3-22545 branch April 22, 2025 13:21
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.

2 participants