You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,19 @@ CHANGELOG
27
27
Swift 5.3
28
28
----------
29
29
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
+
tryperformTask()
37
+
} catch TaskError.someFailure(let msg),
38
+
TaskError.anotherFailure(let msg) {
39
+
showMessage(msg)
40
+
}
41
+
```
42
+
30
43
*[SE-0280][]:
31
44
32
45
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.
0 commit comments