diff --git a/CHANGELOG.md b/CHANGELOG.md index 43204b6899cbd..bf4b6290af304 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,19 @@ CHANGELOG Swift 5.3 ---------- +* [SE-0276][]: + + 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. + + ```swift + do { + try performTask() + } catch TaskError.someFailure(let msg), + TaskError.anotherFailure(let msg) { + showMessage(msg) + } + ``` + * [SE-0280][]: 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 [SE-0266]: [SE-0267]: [SE-0269]: +[SE-0276]: [SE-0280]: [SR-75]: