Skip to content

Commit 28e0d38

Browse files
committed
Docs: add release note for SE-432
(cherry picked from commit 62f058e)
1 parent ad290ee commit 28e0d38

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@
55
66
## Swift 6.0
77

8+
* [SE-0432][]:
9+
Noncopyable enums can be pattern-matched with switches without consuming the
10+
value you switch over:
11+
12+
```swift
13+
enum Lunch: ~Copyable {
14+
case soup
15+
case salad
16+
case sandwich
17+
}
18+
19+
func isSoup(_ lunch: borrowing Lunch) -> Bool {
20+
switch lunch {
21+
case .soup: true
22+
default: false
23+
}
24+
}
25+
```
26+
27+
828
* [SE-0428][]:
929
Distributed actors now have the ability to support complete split server /
1030
client systems, thanks to the new `@Resolvable` macro and runtime changes.
@@ -10537,6 +10557,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
1053710557
[SE-0412]: https://github.com/apple/swift-evolution/blob/main/proposals/0412-strict-concurrency-for-global-variables.md
1053810558
[SE-0413]: https://github.com/apple/swift-evolution/blob/main/proposals/0413-typed-throws.md
1053910559
[SE-0429]: https://github.com/apple/swift-evolution/blob/main/proposals/0429-partial-consumption.md
10560+
[SE-0432]: https://github.com/apple/swift-evolution/blob/main/proposals/0432-noncopyable-switch.md
1054010561
[SE-0414]: https://github.com/apple/swift-evolution/blob/main/proposals/0414-region-based-isolation.md
1054110562
[SE-0424]: https://github.com/apple/swift-evolution/blob/main/proposals/0424-custom-isolation-checking-for-serialexecutor.md
1054210563
[SE-0428]: https://github.com/apple/swift-evolution/blob/main/proposals/0428-resolve-distributed-actor-protocols.md

0 commit comments

Comments
 (0)