Commit db13a63
committed
[CSApply] Key path dynamic member lookup argument is Sendable only if its captures are
Previously dynamic member subscript wasn't allowed to use `& Sendable`,
since this restriction was lifted the argument cannot simply assume
the parameter type any longer, the key path captures have to be checked
to determine whether it could be marked as Sendable or not.
Resolves: #77105
Resolves: rdar://1382273931 parent 56976c5 commit db13a63
File tree
2 files changed
+44
-4
lines changed- lib/Sema
- test/Concurrency
2 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2556 | 2556 | | |
2557 | 2557 | | |
2558 | 2558 | | |
2559 | | - | |
| 2559 | + | |
| 2560 | + | |
2560 | 2561 | | |
2561 | 2562 | | |
2562 | | - | |
| 2563 | + | |
2563 | 2564 | | |
2564 | 2565 | | |
2565 | 2566 | | |
2566 | 2567 | | |
2567 | 2568 | | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
2568 | 2589 | | |
2569 | 2590 | | |
2570 | | - | |
| 2591 | + | |
2571 | 2592 | | |
2572 | 2593 | | |
2573 | 2594 | | |
| |||
2576 | 2597 | | |
2577 | 2598 | | |
2578 | 2599 | | |
2579 | | - | |
| 2600 | + | |
2580 | 2601 | | |
2581 | 2602 | | |
2582 | 2603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
0 commit comments