Skip to content

Commit a2f7745

Browse files
committed
SE-0328 "Structural opaque result types" is implemented.
1 parent a5f6760 commit a2f7745

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
@@ -3,6 +3,19 @@ CHANGELOG
33

44
_**Note:** This is in reverse chronological order, so newer entries are added to the top._
55

6+
## Swift Next
7+
8+
* [SE-0328][]:
9+
10+
Opaque types (expressed with 'some') can now be used in structural positions
11+
within a result type, including having multiple opaque types in the same
12+
result. For example:
13+
14+
```
15+
func getSomeDictionary() -> [some Hashable: some Codable] {
16+
return [ 1: "One", 2: "Two" ]
17+
}
18+
```
619
Swift 5.6
720
---------
821

@@ -8761,6 +8774,7 @@ Swift 1.0
87618774
[SE-0316]: <https://github.com/apple/swift-evolution/blob/main/proposals/0316-global-actors.md>
87628775
[SE-0324]: <https://github.com/apple/swift-evolution/blob/main/proposals/0324-c-lang-pointer-arg-conversion.md>
87638776
[SE-0323]: <https://github.com/apple/swift-evolution/blob/main/proposals/0323-async-main-semantics.md>
8777+
[SE-0328]: <https://github.com/apple/swift-evolution/blob/main/proposals/0328-structural-opaque-result-types.md>
87648778

87658779
[SR-75]: <https://bugs.swift.org/browse/SR-75>
87668780
[SR-106]: <https://bugs.swift.org/browse/SR-106>

0 commit comments

Comments
 (0)