Skip to content

Commit 6b5b4b4

Browse files
committed
Add changelog entry for new feature on master branch
1 parent 77aaa4f commit 6b5b4b4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
| Contents |
88
| :--------------------- |
9+
| [Swift Next](#swift-next) |
910
| [Swift 5.1](#swift-51) |
1011
| [Swift 5.0](#swift-50) |
1112
| [Swift 4.2](#swift-42) |
@@ -22,6 +23,24 @@ CHANGELOG
2223

2324
</details>
2425

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+
2544
Swift 5.1
2645
---------
2746

0 commit comments

Comments
 (0)