Skip to content

Commit 90f9dd4

Browse files
authored
Merge branch 'master' into nc_lazyscan_fix
2 parents ab5846c + 1857a37 commit 90f9dd4

File tree

2,998 files changed

+252795
-90913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,998 files changed

+252795
-90913
lines changed

.mailmap

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ Daniel Duan <[email protected]> <[email protected]>
2929
Dante Broggi <[email protected]>
3030
3131
32-
3332
3433
3534
36-
37-
David Rönnqvist <[email protected]>
35+
36+
David Rönnqvist <[email protected]>
3837
3938
4039
@@ -43,10 +42,8 @@ Davide Italiano <[email protected]> <[email protected]>
4342
4443
4544
46-
4745
4846
Erik Eckstein <[email protected]>
49-
5047
5148
Ewa Matejska <[email protected]>
5249
@@ -130,15 +127,13 @@ Ross Bayer <[email protected]>
130127
131128
132129
133-
134130
135131
Stephen Canon <[email protected]>
136132
137133
Sukolsak Sakshuwong <[email protected]>
138134
139135
140136
141-
142137
143138
144139

CHANGELOG.md

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ CHANGELOG
2626
Swift Next
2727
----------
2828

29+
* [SR-4206][]:
30+
31+
A method override is no longer allowed to have a generic signature with
32+
requirements not imposed by the base method. For example:
33+
34+
```
35+
protocol P {}
36+
37+
class Base {
38+
func foo<T>(arg: T) {}
39+
}
40+
41+
class Derived: Base {
42+
override func foo<T: P>(arg: T) {}
43+
}
44+
```
45+
46+
will now be diagnosed as an error.
47+
2948
* [SR-6118][]:
3049

3150
Subscripts can now declare default arguments:
@@ -41,9 +60,33 @@ Swift Next
4160
print(s[0])
4261
```
4362

63+
**Add new entries to the top of this section, not here!**
64+
4465
Swift 5.1
4566
---------
4667

68+
* [SR-8974][]:
69+
70+
Duplicate tuple element labels are no longer allowed, because it leads
71+
to incorrect behavior. For example:
72+
73+
```
74+
let dupLabels: (foo: Int, foo: Int) = (foo: 1, foo: 2)
75+
76+
enum Foo { case bar(x: Int, x: Int) }
77+
let f: Foo = .bar(x: 0, x: 1)
78+
```
79+
80+
will now be diagnosed as an error.
81+
82+
Note: You can still use duplicate argument labels when declaring functions and
83+
subscripts, as long as the internal parameter names are different. For example:
84+
85+
```
86+
func foo(bar x: Int, bar y: Int) {}
87+
subscript(a x: Int, a y: Int) -> Int {}
88+
```
89+
4790
* [SE-0244][]:
4891

4992
Functions can now hide their concrete return type by declaring what protocols
@@ -58,7 +101,7 @@ Swift 5.1
58101
Code that calls the function can use the interface of the protocol, but
59102
does not have visibility into the underlying type.
60103

61-
* [SE-0256][]:
104+
* [SE-0254][]:
62105

63106
Subscripts can now be declared `static` or (inside classes) `class`.
64107

@@ -195,7 +238,9 @@ Swift 5.1
195238
}
196239
```
197240

198-
* `weak` and `unowned` stored properties no longer inhibit the
241+
* [SR-9827][]:
242+
243+
`weak` and `unowned` stored properties no longer inhibit the
199244
automatic synthesis of `Equatable` or `Hashable` conformance.
200245

201246
* [SR-2688][]:
@@ -260,6 +305,8 @@ Swift 5.1
260305
Swift 5.0
261306
---------
262307

308+
### 2019-03-25 (Xcode 10.2)
309+
263310
* [SE-0235][]:
264311

265312
The standard library now contains a `Result` type for manually propagating errors.
@@ -520,8 +567,6 @@ Swift 5.0
520567
}
521568
```
522569

523-
**Add new entries to the top of this section, not here!**
524-
525570
Swift 4.2
526571
---------
527572

@@ -7663,7 +7708,10 @@ Swift 1.0
76637708
[SE-0230]: <https://github.com/apple/swift-evolution/blob/master/proposals/0230-flatten-optional-try.md>
76647709
[SE-0235]: <https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md>
76657710
[SE-0242]: <https://github.com/apple/swift-evolution/blob/master/proposals/0242-default-values-memberwise.md>
7711+
[SE-0244]: <https://github.com/apple/swift-evolution/blob/master/proposals/0244-opaque-result-types.md>
76667712
[SE-0245]: <https://github.com/apple/swift-evolution/blob/master/proposals/0245-array-uninitialized-initializer.md>
7713+
[SE-0252]: <https://github.com/apple/swift-evolution/blob/master/proposals/0252-keypath-dynamic-member-lookup.md>
7714+
[SE-0254]: <https://github.com/apple/swift-evolution/blob/master/proposals/0254-static-subscripts.md>
76677715

76687716
[SR-106]: <https://bugs.swift.org/browse/SR-106>
76697717
[SR-419]: <https://bugs.swift.org/browse/SR-419>
@@ -7679,13 +7727,17 @@ Swift 1.0
76797727
[SR-2608]: <https://bugs.swift.org/browse/SR-2608>
76807728
[SR-2672]: <https://bugs.swift.org/browse/SR-2672>
76817729
[SR-2688]: <https://bugs.swift.org/browse/SR-2688>
7730+
[SR-4206]: <https://bugs.swift.org/browse/SR-4206>
76827731
[SR-4248]: <https://bugs.swift.org/browse/SR-4248>
76837732
[SR-5581]: <https://bugs.swift.org/browse/SR-5581>
76847733
[SR-5719]: <https://bugs.swift.org/browse/SR-5719>
7734+
[SR-6118]: <https://bugs.swift.org/browse/SR-6118>
76857735
[SR-7139]: <https://bugs.swift.org/browse/SR-7139>
76867736
[SR-7251]: <https://bugs.swift.org/browse/SR-7251>
76877737
[SR-7601]: <https://bugs.swift.org/browse/SR-7601>
76887738
[SR-7799]: <https://bugs.swift.org/browse/SR-7799>
76897739
[SR-8109]: <https://bugs.swift.org/browse/SR-8109>
76907740
[SR-8546]: <https://bugs.swift.org/browse/SR-8546>
7741+
[SR-8974]: <https://bugs.swift.org/browse/SR-8974>
76917742
[SR-9043]: <https://bugs.swift.org/browse/SR-9043>
7743+
[SR-9827]: <https://bugs.swift.org/browse/SR-9827>

0 commit comments

Comments
 (0)