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

fix #12949: export synthetic given co-defined with class #12999

Closed
wants to merge 1 commit into from

Conversation

bishabosha
Copy link
Member

An alternative to #12979 that does not introduce new flags

@bishabosha bishabosha requested a review from odersky July 2, 2021 09:32
@bishabosha bishabosha added the needs-minor-release This PR cannot be merged until the next minor release label Jul 2, 2021
Co-authored-by: Martin Odersky <[email protected]>
Co-authored-by: Jamie Thompson <[email protected]>
@bishabosha
Copy link
Member Author

Tentatively putting next-minor-release label as it adds new definitions to files compiled with this change

@odersky
Copy link
Contributor

odersky commented Jul 2, 2021

I think I prefer the solution to drop Synthetic. A given def is not synthetic; it's written by the user. If anything, it's the companion class that should be synthetic. And it's a good rule to say that synthetics are excluded from exports. So while #12979 is initially a more complicated change, it will make things more regular in the end, rather than adding one irregularity to compensate another one.

@bishabosha
Copy link
Member Author

I agree it is a bit strange to special case this one case of synthetic - closing this

@bishabosha bishabosha closed this Jul 2, 2021
@dwijnand dwijnand removed the needs-minor-release This PR cannot be merged until the next minor release label Aug 16, 2021
@bishabosha bishabosha deleted the fix-12949-alternative branch September 10, 2021 14:09
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