File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,18 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
5
5
6
6
Swift 5.6
7
7
---------
8
+ * [ SE-0315] [ ] :
9
+
10
+ Type expressions and annotations can now include "type placeholders" which
11
+ directs the compiler to fill in that portion of the type according to the usual
12
+ type inference rules. Type placeholders are spelled as an underscore ("` _ ` ") in
13
+ a type name. For instance:
14
+
15
+ ``` swift
16
+ // This is OK--the compiler can infer the key type as `Int`.
17
+ let dict: [_: String ] = [0 : " zero" , 1 : " one" , 2 : " two" ]
18
+ ```
19
+
8
20
* [ SE-0290] [ ] :
9
21
10
22
It is now possible to write inverted availability conditions by using the new ` #unavailable ` keyword:
@@ -8680,6 +8692,7 @@ Swift 1.0
8680
8692
[SE- 0310 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0310-effectful-readonly-properties.md>
8681
8693
[SE- 0311 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0311-task-locals.md>
8682
8694
[SE- 0313 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0313-actor-isolation-control.md>
8695
+ [SE- 0315 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0315-placeholder-types.md>
8683
8696
[SE- 0316 ]: < https: // github.com/apple/swift-evolution/blob/main/proposals/0316-global-actors.md>
8684
8697
8685
8698
[SR- 75 ]: < https: // bugs.swift.org/browse/SR-75>
You can’t perform that action at this time.
0 commit comments