We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77aaa4f commit 6b5b4b4Copy full SHA for 6b5b4b4
CHANGELOG.md
@@ -6,6 +6,7 @@ CHANGELOG
6
7
| Contents |
8
| :--------------------- |
9
+| [Swift Next](#swift-next) |
10
| [Swift 5.1](#swift-51) |
11
| [Swift 5.0](#swift-50) |
12
| [Swift 4.2](#swift-42) |
@@ -22,6 +23,24 @@ CHANGELOG
22
23
24
</details>
25
26
+Swift Next
27
+----------
28
+
29
+* [SR-6118][]:
30
31
+ Subscripts can now declare default arguments:
32
33
+ ```swift
34
+ struct Subscriptable {
35
+ subscript(x: Int, y: Int = 0) {
36
+ ...
37
+ }
38
39
40
+ let s = Subscriptable()
41
+ print(s[0])
42
+ ```
43
44
Swift 5.1
45
---------
46
0 commit comments