Skip to content

Commit 5564a57

Browse files
committed
Add changelog entry for nested generic types
1 parent e2be8e2 commit 5564a57

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ CHANGELOG
2020
Swift 3.1
2121
---------
2222

23+
* [SR-1446](https://bugs.swift.org/browse/SR-1446)
24+
25+
Nested types may now appear inside generic types, and nested types may have their own generic parameters:
26+
27+
```swift
28+
struct OuterNonGeneric {
29+
struct InnerGeneric<T> {}
30+
}
31+
32+
struct OuterGeneric<T> {
33+
struct InnerNonGeneric {}
34+
35+
struct InnerGeneric<T> {}
36+
}
37+
38+
extension OuterNonGeneric.InnerGeneric {}
39+
extension OuterGeneric.InnerNonGeneric {}
40+
extension OuterGeneric.InnerGeneric {}
41+
```
42+
2343
* [SR-1009](https://bugs.swift.org/browse/SR-1009):
2444

2545
Constrained extensions allow same-type constraints between generic parameters and concrete types. This enables you to create extensions, for example, on `Array` with `Int` elements:

0 commit comments

Comments
 (0)