Skip to content

Commit fda82db

Browse files
committed
---
yaml --- r: 282622 b: refs/heads/master c: 4075749 h: refs/heads/master
1 parent 2b0729a commit fda82db

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 95c43f4e184e63c83e5c01d2d6cd033ae03aabca
2+
refs/heads/master: 40757497242cb0fafc7aa1409ead4c716d21eba7
33
refs/heads/master-next: 820766c166ae1ee499715d69f06953249c74f1de
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ Swift Next
4444
Swift 5.1
4545
---------
4646

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+
4761
* [SE-0256][]:
4862

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

0 commit comments

Comments
 (0)