-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 => }`.
- Loading branch information
Showing
3 changed files
with
72 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters