Skip to content
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

Check trait constructor for accessibility even if not called at Typer #17094

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 12, 2023

This allows to restrict inheritance of traits even if the constructor is not called, or not called at Typer.

Fixes #17089

odersky added 2 commits March 12, 2023 20:01
This allows to restrict inheritance of traits even if the constructor is not
called, or not called at Typer.

Fixes scala#17089
Only check trait constructor accessibility if the trait is a parent of some
other class or trait. Refinements don't fall into this category.
@nicolasstucki nicolasstucki merged commit ed57e32 into scala:main Mar 23, 2023
@nicolasstucki nicolasstucki deleted the fix-17089 branch March 23, 2023 13:02
@Kordyjan Kordyjan added this to the 3.3.1 milestone Aug 1, 2023
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.

private-ness of trait constructor ignored
3 participants