Commit 40c8da6
committed
[ConstraintSystem] InferSendableFromCaptures: Start inferring sendability of key path expressions
When `InferSendableFromCaptures` feature is enabled `inferKeyPathLiteralCapability`
should examine subscript arguments to determine whether the key path type is
sendable or not, and if so, inform inference to produce `& Sendable` existential
type as a binding. Binding key path type is delayed until all subscript arguments
are fully resolved.1 parent d727495 commit 40c8da6
2 files changed
+59
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
538 | 543 | | |
539 | | - | |
540 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
541 | 547 | | |
542 | 548 | | |
543 | | - | |
544 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
545 | 552 | | |
546 | 553 | | |
547 | | - | |
548 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
549 | 566 | | |
| 567 | + | |
| 568 | + | |
550 | 569 | | |
551 | 570 | | |
552 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7445 | 7445 | | |
7446 | 7446 | | |
7447 | 7447 | | |
| 7448 | + | |
7448 | 7449 | | |
7449 | 7450 | | |
7450 | 7451 | | |
| |||
7454 | 7455 | | |
7455 | 7456 | | |
7456 | 7457 | | |
7457 | | - | |
| 7458 | + | |
7458 | 7459 | | |
7459 | | - | |
| 7460 | + | |
7460 | 7461 | | |
7461 | 7462 | | |
7462 | 7463 | | |
| |||
7475 | 7476 | | |
7476 | 7477 | | |
7477 | 7478 | | |
| 7479 | + | |
| 7480 | + | |
| 7481 | + | |
| 7482 | + | |
| 7483 | + | |
| 7484 | + | |
| 7485 | + | |
| 7486 | + | |
| 7487 | + | |
| 7488 | + | |
| 7489 | + | |
| 7490 | + | |
| 7491 | + | |
| 7492 | + | |
| 7493 | + | |
| 7494 | + | |
| 7495 | + | |
| 7496 | + | |
| 7497 | + | |
| 7498 | + | |
| 7499 | + | |
| 7500 | + | |
| 7501 | + | |
| 7502 | + | |
| 7503 | + | |
7478 | 7504 | | |
7479 | | - | |
7480 | | - | |
7481 | | - | |
| 7505 | + | |
7482 | 7506 | | |
7483 | 7507 | | |
7484 | 7508 | | |
| |||
7555 | 7579 | | |
7556 | 7580 | | |
7557 | 7581 | | |
7558 | | - | |
| 7582 | + | |
7559 | 7583 | | |
7560 | 7584 | | |
7561 | 7585 | | |
| |||
0 commit comments