-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Where clauses go on switch patterns, not cases
The grammar erroneously had it that a switch _case_ would get a single `where` clause, disallowing something like: ``` case .foo(x) where x.count() == 0, .bar(x): ``` Allowing `where`-clauses per pattern is strictly more flexible.
- Loading branch information
1 parent
fa831a7
commit 51da3d1
Showing
2 changed files
with
10 additions
and
3 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