Skip to content

Commit d1e2c0c

Browse files
committed
Add CHANGELOG entry for #34140
1 parent bcfafc1 commit d1e2c0c

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
@@ -28,6 +28,20 @@ CHANGELOG
2828
Swift Next
2929
----------
3030

31+
* Whenever a reference to `Self` does not impede the usage of a protocol as a value type, or a protocol member on a value of protocol type, the same is now true for references to `[Self]` and `[Key : Self]`:
32+
33+
```swift
34+
protocol Copyable {
35+
func copy() -> Self
36+
func copy(count: Int) -> [Self]
37+
}
38+
39+
func test(c: Copyable) {
40+
let copy: Copyable = c.copy() // OK
41+
let copies: [Copyable] = c.copy(count: 5) // also OK
42+
}
43+
```
44+
3145
* [SE-0296][]:
3246

3347
Asynchronous programming is now natively supported using async/await. Asynchronous functions can be defined using `async`:

0 commit comments

Comments
 (0)