Commit 985843a
committed
[ConstraintSystem] Add a new transitive conformance constraint
Conformance constraints could be transferred through conversions,
but that would also require checking implicit conversions
such as optional and pointer promotions for conformance is the
type itself doesn't conform, for that let's add a special constraint
`TransitivelyConformsTo`.1 parent 4de232e commit 985843a
File tree
6 files changed
+48
-1
lines changed- include/swift/Sema
- lib/Sema
6 files changed
+48
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
| |||
579 | 584 | | |
580 | 585 | | |
581 | 586 | | |
| 587 | + | |
582 | 588 | | |
583 | 589 | | |
584 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4513 | 4513 | | |
4514 | 4514 | | |
4515 | 4515 | | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
4516 | 4522 | | |
4517 | 4523 | | |
4518 | 4524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1312 | 1312 | | |
1313 | 1313 | | |
1314 | 1314 | | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1315 | 1321 | | |
1316 | 1322 | | |
1317 | 1323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
| 1545 | + | |
1545 | 1546 | | |
1546 | 1547 | | |
1547 | 1548 | | |
| |||
1682 | 1683 | | |
1683 | 1684 | | |
1684 | 1685 | | |
| 1686 | + | |
1685 | 1687 | | |
1686 | 1688 | | |
1687 | 1689 | | |
| |||
2072 | 2074 | | |
2073 | 2075 | | |
2074 | 2076 | | |
| 2077 | + | |
2075 | 2078 | | |
2076 | 2079 | | |
2077 | 2080 | | |
| |||
4983 | 4986 | | |
4984 | 4987 | | |
4985 | 4988 | | |
| 4989 | + | |
4986 | 4990 | | |
4987 | 4991 | | |
4988 | 4992 | | |
| |||
6186 | 6190 | | |
6187 | 6191 | | |
6188 | 6192 | | |
| 6193 | + | |
| 6194 | + | |
| 6195 | + | |
| 6196 | + | |
| 6197 | + | |
| 6198 | + | |
6189 | 6199 | | |
6190 | 6200 | | |
6191 | 6201 | | |
| |||
11259 | 11269 | | |
11260 | 11270 | | |
11261 | 11271 | | |
| 11272 | + | |
| 11273 | + | |
| 11274 | + | |
| 11275 | + | |
11262 | 11276 | | |
11263 | 11277 | | |
11264 | 11278 | | |
| |||
11727 | 11741 | | |
11728 | 11742 | | |
11729 | 11743 | | |
| 11744 | + | |
| 11745 | + | |
| 11746 | + | |
| 11747 | + | |
| 11748 | + | |
| 11749 | + | |
| 11750 | + | |
11730 | 11751 | | |
11731 | 11752 | | |
11732 | 11753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2232 | 2232 | | |
2233 | 2233 | | |
2234 | 2234 | | |
| 2235 | + | |
2235 | 2236 | | |
2236 | 2237 | | |
2237 | 2238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | | - | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| |||
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
| 265 | + | |
262 | 266 | | |
263 | 267 | | |
264 | 268 | | |
| |||
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
| 364 | + | |
360 | 365 | | |
361 | 366 | | |
362 | 367 | | |
| |||
599 | 604 | | |
600 | 605 | | |
601 | 606 | | |
| 607 | + | |
602 | 608 | | |
603 | 609 | | |
604 | 610 | | |
| |||
659 | 665 | | |
660 | 666 | | |
661 | 667 | | |
| 668 | + | |
662 | 669 | | |
663 | 670 | | |
664 | 671 | | |
| |||
0 commit comments