Skip to content

checkNoPrivateLeaks: Use correct position for errors #1995

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 1 commit into from
Feb 18, 2017

Conversation

smarter
Copy link
Member

@smarter smarter commented Feb 17, 2017

Previously we never used the pos argument of checkNoPrivateLeaks and
instead used sym.pos, this makes a difference for calls to
avoidPrivateLeaks coming from TreeUnpickler where we should use
tree.pos instead.

Previously we never used the `pos` argument of `checkNoPrivateLeaks` and
instead used `sym.pos`, this makes a difference for calls to
`avoidPrivateLeaks` coming from `TreeUnpickler` where we should use
`tree.pos` instead.
@smarter smarter requested a review from odersky February 17, 2017 17:25
@odersky
Copy link
Contributor

odersky commented Feb 18, 2017

And it gets simpler that way, too! Nice.

@odersky odersky merged commit 1183b57 into scala:master Feb 18, 2017
@allanrenucci allanrenucci deleted the fix/private-leaks-pos branch December 14, 2017 19:22
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