Skip to content

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

Merged

Conversation

hermesespinola
Copy link
Contributor

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

Copy link
Member

@dottybot dottybot left a 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"""
Copy link
Contributor

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"

@hermesespinola
Copy link
Contributor Author

I updated the error message

@nicolasstucki
Copy link
Contributor

You will also need to rebase it.

@nicolasstucki nicolasstucki self-assigned this Dec 10, 2018
@hermesespinola hermesespinola force-pushed the error-msg/stable-identifiers branch from 4484a36 to 0984da3 Compare December 13, 2018 17:53
@nicolasstucki nicolasstucki merged commit 62292f2 into scala:master Dec 13, 2018
@nicolasstucki
Copy link
Contributor

Thanks @hermesespinola

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