Skip to content

Fix setup of class constructors #22980

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 1 commit into from
Apr 13, 2025
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 11, 2025

Fix the containsCovarRetains criterion that decides when to make a parameter not private for the purposes of capture checking. We were missing a dealias, so A => B was not detected to contain a capture set.

Also avoid refining with the same name twice in inferred types.

Fox the containsCovarRetains criterion that decides when to make
a parameter not provate for the purposes of capture checking. We
were missing a dealias, so `A => B` was not detected to contain a
capture set.

Also avoid refining with the same name twice in inferred types.
@odersky odersky merged commit e5f9cfb into scala:main Apr 13, 2025
30 checks passed
@odersky odersky deleted the fix-cc-class-setup branch April 13, 2025 15:16
@WojciechMazur WojciechMazur added this to the 3.7.1 milestone May 1, 2025
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.

3 participants