Skip to content

Allow class parents to be refined types. #19256

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

Closed
wants to merge 1 commit into from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 13, 2023

Refinements of a class parent are added as synthetic members to the inheriting class.

This is a key improvement that will unlock several other things. It also entails a spec change, because right now we restrict class parents to class types or aliases of class types.

@odersky odersky force-pushed the add-refined-parents branch from 74bc575 to 0f2b427 Compare December 13, 2023 10:21
@odersky odersky marked this pull request as ready for review January 5, 2024 21:23
Refinements of a class parent are added as synthetic members to the inheriting class.
@odersky odersky force-pushed the add-refined-parents branch from 0f2b427 to 0178c98 Compare January 6, 2024 10:12
@odersky
Copy link
Contributor Author

odersky commented Jan 7, 2024

This is now a part of #18958

@odersky odersky closed this Jan 7, 2024
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.

1 participant