Skip to content

Fix #997 #1066

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 8 commits into from
Feb 19, 2016
Merged

Fix #997 #1066

merged 8 commits into from
Feb 19, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 8, 2016

Ensure that private references do not leak. Review by @DarkDimius

@odersky
Copy link
Contributor Author

odersky commented Feb 8, 2016

/rebuild

val errors1 =
if (tp.symbol.is(Private) &&
!accessBoundary(sym).isContainedIn(tp.symbol.owner)) {
(d"non-private $sym refers to private ${tp.symbol}\n in its type signature ${sym.info}", tree.pos) :: errors
Copy link
Member

Choose a reason for hiding this comment

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

Why not just call ctx.errorOrMigrationWarning here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we might end up not issuing the error if a parent is a TypeAlias.

@odersky
Copy link
Contributor Author

odersky commented Feb 18, 2016

Ready to merge?

@DarkDimius
Copy link
Contributor

LGTM

@odersky
Copy link
Contributor Author

odersky commented Feb 19, 2016

Rebased to master

odersky added a commit that referenced this pull request Feb 19, 2016
@odersky odersky merged commit dfa3ec8 into scala:master Feb 19, 2016
@allanrenucci allanrenucci deleted the fix-#997 branch December 14, 2017 19:19
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.

4 participants