Skip to content

Change protected accessors #4597

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 6 commits into from
May 31, 2018

Conversation

allanrenucci
Copy link
Contributor

Reopening #4568 that I closed by mistake

odersky and others added 6 commits May 29, 2018 14:10
New phase to check protected accessors.

We now create accessors also for Scala symbols. Previously this was not done
as it was assumed that such symbols will always be mapped to public.

We create the accessors anyway in order to better test the functionality, so
that we can at some point avoid the access widening from protected to public.
Protected accessor names are no longer pickled, but inline accessors are.
Adapt name tags accordingly. Bump major Tasty version.
…classes

Superaccessors handles this already correctly by generating a super accessor in
this case.
Fix remaining problems, mostly having to do with choosing between
super accessors and protected accessors.
@allanrenucci allanrenucci self-assigned this May 29, 2018
@allanrenucci allanrenucci force-pushed the change-protected-accessors branch 2 times, most recently from 9015f02 to fb31e4a Compare May 29, 2018 17:06
@odersky
Copy link
Contributor

odersky commented May 31, 2018

Allan, before we try to change this further, can we merge the status up to
bf62402 please? I need this to make progress on the revised inliner.

@allanrenucci allanrenucci force-pushed the change-protected-accessors branch from cd51ffb to bf62402 Compare May 31, 2018 09:34
Copy link
Contributor Author

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

LGTM (GitHub won't let me approve since I opened the PR). @smarter Do you want to have a quick look?

I'll move my commits to a separate PR

@allanrenucci allanrenucci removed their assignment May 31, 2018
@odersky odersky merged commit ce4633d into scala:master May 31, 2018
@allanrenucci allanrenucci deleted the change-protected-accessors branch May 31, 2018 14:55
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.

2 participants