Skip to content
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

Lint pattern vars with same name as id in scope #11850

Open
som-snytt opened this issue Jan 15, 2020 · 0 comments
Open

Lint pattern vars with same name as id in scope #11850

som-snytt opened this issue Jan 15, 2020 · 0 comments
Milestone

Comments

@som-snytt
Copy link

@som-snytt som-snytt commented Jan 15, 2020

Pattern vars are an ordinary feature, but using a varid instead of backticked id is a standard gotcha. There is a puzzler in the queue.

As for "missing interpolator", warn if there is a like-named symbol in scope.

As for "unused patvar", the escape hatch is case x @ _ =>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.