Skip to content

Fix deprecation messages missing a position #2332

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 2 commits into from
May 1, 2017

Conversation

smarter
Copy link
Member

@smarter smarter commented Apr 30, 2017

pos was accidentally passed as a fourth argument to format and
ignored instead of as a second argument to deprecationWarning.

smarter added 2 commits April 30, 2017 17:50
`pos` was accidentally passed as a fourth argument to `format` and
ignored instead of as a second argument to `deprecationWarning`.
No need to print both `sym` and `sym.showLocated`, the second one is enough.
@smarter smarter requested a review from odersky April 30, 2017 15:56
@smarter
Copy link
Member Author

smarter commented Apr 30, 2017

No test because we don't have -Xfatal-warnings implemented, but you can verify that when running sbt dotty-compiler-bootstrapped/compile the deprecation messages have a position.

@odersky
Copy link
Contributor

odersky commented May 1, 2017

Good illustration of the hidden dangers of complex parameter lists...

LGTM

@odersky odersky merged commit 4897be1 into scala:master May 1, 2017
@allanrenucci allanrenucci deleted the fix/deprecation-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