File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
branches/swift-5.1-branch Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1242,7 +1242,7 @@ refs/heads/marcrasi-astverifier-disable: 3fac766a23a77ebd0640296bfd7fc116ea60a4e
1242
1242
refs/heads/revert-22227-a-tall-white-fountain-played: adfce60b2eaa54903ea189bed8a783bca609fa53
1243
1243
refs/heads/revert-22300-revert-22227-a-tall-white-fountain-played: 5f92040224df7dd4e618fdfb367349df64d8acad
1244
1244
refs/heads/swift-5.1-old-llvm-branch: 9cef8175146f25b72806154b8a0f4a3f52e3e400
1245
- refs/heads/swift-5.1-branch: 160375f170803c3f224aba1247762444ec4715cd
1245
+ refs/heads/swift-5.1-branch: f6cf9aa27c8db614da7c6d086cd3b706e9a2a2cb
1246
1246
refs/tags/swift-4.2.2-RELEASE: e429d1f1aaf59e69d38207a96e56265c7f6fccec
1247
1247
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-02-a: 3e5a03d32ff3b1e9af90d6c1198c14f938379a6e
1248
1248
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-03-a: 4591c933063ddcb0d6cd6d0cdd01086b2f9b244d
Original file line number Diff line number Diff line change @@ -25,6 +25,20 @@ CHANGELOG
25
25
Swift 5.1
26
26
---------
27
27
28
+ * [ SE-0244] [ ] :
29
+
30
+ Functions can now hide their concrete return type by declaring what protocols
31
+ it conforms to instead of specifying the exact return type:
32
+
33
+ ```
34
+ func makeMeACollection() -> some Collection {
35
+ return [1, 2, 3]
36
+ }
37
+ ```
38
+
39
+ Code that calls the function can use the interface of the protocol, but
40
+ does not have visibility into the underlying type.
41
+
28
42
* [ SE-0254] [ ] :
29
43
30
44
Subscripts can now be declared ` static ` or (inside classes) ` class ` .
You can’t perform that action at this time.
0 commit comments