Commit 24625bb
committed
[ConstraintSystem] Fix support for a single pack expansion parameter in
In Swift 5 and earlier initializer references are handled in a special
way that uses a type variable to represent a type of the parameter
list. Such type variables should be allowed to bind to a pack expansion
type to support cases where initializer has a single unlabeled variadic
generic parameter - `init(_ data: repeat each T)`.init references1 parent a2d2fef commit 24625bb
File tree
3 files changed
+53
-14
lines changed- lib/Sema
- test/Constraints
3 files changed
+53
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
1702 | | - | |
| 1702 | + | |
| 1703 | + | |
1703 | 1704 | | |
1704 | 1705 | | |
1705 | 1706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4311 | 4311 | | |
4312 | 4312 | | |
4313 | 4313 | | |
4314 | | - | |
4315 | | - | |
4316 | | - | |
| 4314 | + | |
| 4315 | + | |
| 4316 | + | |
| 4317 | + | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
4317 | 4325 | | |
4318 | | - | |
4319 | | - | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
4320 | 4330 | | |
4321 | | - | |
4322 | | - | |
4323 | | - | |
4324 | | - | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
4325 | 4335 | | |
4326 | | - | |
4327 | | - | |
4328 | | - | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
4329 | 4345 | | |
4330 | 4346 | | |
4331 | 4347 | | |
| |||
7860 | 7876 | | |
7861 | 7877 | | |
7862 | 7878 | | |
7863 | | - | |
| 7879 | + | |
| 7880 | + | |
7864 | 7881 | | |
7865 | 7882 | | |
7866 | 7883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
265 | 286 | | |
266 | 287 | | |
267 | 288 | | |
| |||
0 commit comments