-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add -Xlint:pattern-shadow
to lint pattern varids which are backquotable
#8806
Merged
Commits on Jan 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b7eed1a - Browse repository at this point
Copy the full SHA b7eed1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac6af40 - Browse repository at this point
Copy the full SHA ac6af40View commit details -
Configuration menu - View commit details
-
Copy full SHA for e31f6df - Browse repository at this point
Copy the full SHA e31f6dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8b4442 - Browse repository at this point
Copy the full SHA b8b4442View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2178255 - Browse repository at this point
Copy the full SHA 2178255View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d03b6f - Browse repository at this point
Copy the full SHA 1d03b6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ab695d0 - Browse repository at this point
Copy the full SHA ab695d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a964d3d - Browse repository at this point
Copy the full SHA a964d3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ddddbc - Browse repository at this point
Copy the full SHA 3ddddbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43c386c - Browse repository at this point
Copy the full SHA 43c386cView commit details -
Loosey-goosey implication in selector
If the shadowed element appears anywhere in the selector expression, don't warn about the shadowing pattern variable. This means that there might be no type relationship between the two symbols, and that elements of tuples might be swapped, i.e., there is no ordering relationship between arguments in the selector and in the pattern. For example, `(x, y) match { case (y, x) => }`. For example, `t.toString match { case t => }`.
Configuration menu - View commit details
-
Copy full SHA for e534c44 - Browse repository at this point
Copy the full SHA e534c44View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.