Skip to content

Fix #8749: Error on $ at the start of a name in quoted patterns #8771

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
Apr 23, 2020

Conversation

nicolasstucki
Copy link
Contributor

These are just part of the name.

@nicolasstucki nicolasstucki marked this pull request as ready for review April 22, 2020 13:55
@smarter
Copy link
Member

smarter commented Apr 22, 2020

I would disallow them instead of warning.

@nicolasstucki nicolasstucki force-pushed the fix-#8749 branch 2 times, most recently from 1c2eb3b to 92f18b9 Compare April 22, 2020 15:36
@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented Apr 22, 2020

Actually source.atSpan(nameSpan) as in

  def sourcePos: SourcePosition = source.atSpan(span)

@nicolasstucki nicolasstucki force-pushed the fix-#8749 branch 2 times, most recently from b6bf727 to 52023f1 Compare April 23, 2020 06:01
@nicolasstucki nicolasstucki changed the title Fix #8749: Warn on $ at the start of a name in quoted patterns Fix #8749: Error on $ at the start of a name in quoted patterns Apr 23, 2020
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolasstucki nicolasstucki merged commit bcce959 into scala:master Apr 23, 2020
@nicolasstucki nicolasstucki deleted the fix-#8749 branch April 23, 2020 12:26
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.

3 participants