-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error msg/stable identifiers #5334
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
Error msg/stable identifiers #5334
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, and thank you for opening this PR! 🎉
All contributors have signed the CLA, thank you! ❤️
Have an awesome day! ☀️
extends Message(StableIdentPatternID) { | ||
override def kind: String = "Syntax" | ||
override def msg: String = { | ||
hl"""|Stable identifier required, but ${tree.show} found""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be rewritten as hl"Stable identifier required, but $tree found"
I updated the error message |
compiler/src/dotty/tools/dotc/reporting/diagnostic/ErrorMessageID.java
Outdated
Show resolved
Hide resolved
You will also need to rebase it. |
4484a36
to
0984da3
Compare
Thanks @hermesespinola |
Adds messages for checking stable identifiers.
Right now I'm considering this error will only show up in pattern matching, is that right?
Part of #1589