Skip to content

Commit 0b0e6de

Browse files
committed
---
yaml --- r: 284399 b: refs/heads/swift-5.1-branch c: f6cf9aa h: refs/heads/master i: 284397: 824b6a5 284395: 1c32fa8 284391: 7cbf598 284383: 69150ec
1 parent f093565 commit 0b0e6de

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ refs/heads/marcrasi-astverifier-disable: 3fac766a23a77ebd0640296bfd7fc116ea60a4e
12421242
refs/heads/revert-22227-a-tall-white-fountain-played: adfce60b2eaa54903ea189bed8a783bca609fa53
12431243
refs/heads/revert-22300-revert-22227-a-tall-white-fountain-played: 5f92040224df7dd4e618fdfb367349df64d8acad
12441244
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
12461246
refs/tags/swift-4.2.2-RELEASE: e429d1f1aaf59e69d38207a96e56265c7f6fccec
12471247
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-02-a: 3e5a03d32ff3b1e9af90d6c1198c14f938379a6e
12481248
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-03-a: 4591c933063ddcb0d6cd6d0cdd01086b2f9b244d

branches/swift-5.1-branch/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ CHANGELOG
2525
Swift 5.1
2626
---------
2727

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+
2842
* [SE-0254][]:
2943

3044
Subscripts can now be declared `static` or (inside classes) `class`.

0 commit comments

Comments
 (0)