File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 95c43f4e184e63c83e5c01d2d6cd033ae03aabca
2
+ refs/heads/master: 40757497242cb0fafc7aa1409ead4c716d21eba7
3
3
refs/heads/master-next: 820766c166ae1ee499715d69f06953249c74f1de
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -44,6 +44,20 @@ Swift Next
44
44
Swift 5.1
45
45
---------
46
46
47
+ * [ SE-0244] [ ] :
48
+
49
+ Functions can now hide their concrete return type by declaring what protocols
50
+ it conforms to instead of specifying the exact return type:
51
+
52
+ ```
53
+ func makeMeACollection() -> some Collection {
54
+ return [1, 2, 3]
55
+ }
56
+ ```
57
+
58
+ Code that calls the function can use the interface of the protocol, but
59
+ does not have visibility into the underlying type.
60
+
47
61
* [ SE-0256] [ ] :
48
62
49
63
Subscripts can now be declared ` static ` or (inside classes) ` class ` .
You can’t perform that action at this time.
0 commit comments