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
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,20 @@ CHANGELOG
28
28
Swift Next
29
29
----------
30
30
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
+
protocolCopyable {
35
+
funccopy() ->Self
36
+
funccopy(count: Int) -> [Self]
37
+
}
38
+
39
+
functest(c: Copyable) {
40
+
let copy: Copyable = c.copy() // OK
41
+
let copies: [Copyable] = c.copy(count: 5) // also OK
42
+
}
43
+
```
44
+
31
45
*[SE-0296][]:
32
46
33
47
Asynchronous programming is now natively supported using async/await. Asynchronous functions can be defined using `async`:
0 commit comments