You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,21 @@ CHANGELOG
21
21
Swift 4.0
22
22
---------
23
23
24
+
*[SE-0142][]
25
+
26
+
Protocols and associated types can now contain `where` clauses that
27
+
provide additional restrictions on associated types. For example:
28
+
29
+
```swift
30
+
protocolStringRepresentable: RawRepresentable
31
+
whereRawValue==String { }
32
+
33
+
protocolRawStringWrapper {
34
+
associatedtypeWrapped: RawRepresentable
35
+
where Wrapper.RawValue==String
36
+
}
37
+
```
38
+
24
39
* [SE-0160][]
25
40
26
41
In Swift 4 mode, a declaration is inferred to be `@objc` where it isrequiredfor semantic consistency of the programming model. Specifically, it is inferred when:
0 commit comments