Commit 387b4ff
committed
[CSSimplify] Skip member access on existential checks if base is existential only due to marker protocols
If the base type is composed with marker protocol(s) i.e.
`<<Type>> & Sendable`, let's skip this check because such
compositions are always opened and simplified down to a
superclass bound post-Sema.
Resolves: rdar://1487820461 parent 3879a47 commit 387b4ff
File tree
2 files changed
+47
-12
lines changed- lib/Sema
- test/Interpreter
2 files changed
+47
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10431 | 10431 | | |
10432 | 10432 | | |
10433 | 10433 | | |
| 10434 | + | |
| 10435 | + | |
| 10436 | + | |
| 10437 | + | |
| 10438 | + | |
| 10439 | + | |
| 10440 | + | |
| 10441 | + | |
| 10442 | + | |
| 10443 | + | |
| 10444 | + | |
| 10445 | + | |
| 10446 | + | |
| 10447 | + | |
| 10448 | + | |
10434 | 10449 | | |
10435 | 10450 | | |
10436 | | - | |
10437 | | - | |
10438 | | - | |
10439 | | - | |
10440 | | - | |
10441 | | - | |
| 10451 | + | |
| 10452 | + | |
| 10453 | + | |
| 10454 | + | |
| 10455 | + | |
10442 | 10456 | | |
10443 | | - | |
10444 | | - | |
10445 | | - | |
10446 | | - | |
| 10457 | + | |
| 10458 | + | |
| 10459 | + | |
10447 | 10460 | | |
10448 | | - | |
10449 | | - | |
10450 | 10461 | | |
10451 | 10462 | | |
10452 | 10463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments