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

Disallow constructor params from appearing in parent types for soundness #16664

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 11, 2023

Fixes #16270.

Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

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

Surprisingly simple fix!

@sjrd sjrd added this to the 3.3.0-RC1 milestone Jan 12, 2023
@sjrd
Copy link
Member

sjrd commented Jan 12, 2023

I'm going to merge this one now, before we cut a 3.3.0-RC. It's an unsoundness fix and needs to go in a minor release. The error message could be improved later, if necessary, but the error needs to be there.

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.

Unsoundness: constructor params must not be in scope for the parent types
4 participants