Skip to content

Commit 0bfd10e

Browse files
committed
[Changelog] Add SE-0276 to the changelog
1 parent 4264b39 commit 0bfd10e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ CHANGELOG
2727
Swift 5.3
2828
----------
2929

30+
* [SE-0276][]:
31+
32+
Catch clauses in a `do`-`catch` statement can now include multiple patterns in a comma-separated list. The body of a `catch` clause will be executed if a thrown error matches any of its patterns.
33+
34+
```swift
35+
do {
36+
try performTask()
37+
} catch TaskError.someFailure(let msg),
38+
TaskError.anotherFailure(let msg) {
39+
showMessage(msg)
40+
}
41+
```
42+
3043
* [SE-0280][]:
3144

3245
Enum cases can now satisfy static protocol requirements. A static get-only property of type `Self` can be witnessed by an enum case with no associated values and a static function with arguments and returning `Self` can be witnessed by an enum case with associated values.
@@ -7970,6 +7983,7 @@ Swift 1.0
79707983
[SE-0266]: <https://github.com/apple/swift-evolution/blob/master/proposals/0266-synthesized-comparable-for-enumerations.md>
79717984
[SE-0267]: <https://github.com/apple/swift-evolution/blob/master/proposals/0267-where-on-contextually-generic.md>
79727985
[SE-0269]: <https://github.com/apple/swift-evolution/blob/master/proposals/0269-implicit-self-explicit-capture.md>
7986+
[SE-0276]: <https://github.com/apple/swift-evolution/blob/master/proposals/0276-multi-pattern-catch-clauses.md>
79737987
[SE-0280]: <https://github.com/apple/swift-evolution/blob/master/proposals/0280-enum-cases-as-protocol-witnesses.md>
79747988

79757989
[SR-75]: <https://bugs.swift.org/browse/SR-75>

0 commit comments

Comments
 (0)