Skip to content

Fix #2780: Fix generation of protected accessors #2784

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 3 commits into from
Jun 20, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 20, 2017

It seems we never generated any. The condition to generate them was broken and once @smarter fixed that, the generated accessor was wrong.

smarter and others added 3 commits June 20, 2017 09:57
A protected accessor is not needed if the current class self-type is a
subtype of the accessed symbol, but the logic to check this was broken
before this commit and looked at the host class self-type instead.
@odersky odersky requested a review from smarter June 20, 2017 09:57
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for taking over!

@smarter smarter merged commit 1d05796 into scala:master Jun 20, 2017
@allanrenucci allanrenucci deleted the fix-i2780 branch December 14, 2017 19:20
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