Commit f7191b3
committed
[CS] Add contextual Bool type to switch-case
Seems this was accidentally omitted, which would
crash in CSApply for any non-Bool-convertible type.where clause1 parent eac3fb4 commit f7191b3
File tree
4 files changed
+38
-16
lines changed- lib/Sema
- test/Constraints
4 files changed
+38
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9224 | 9224 | | |
9225 | 9225 | | |
9226 | 9226 | | |
9227 | | - | |
9228 | | - | |
9229 | | - | |
9230 | | - | |
9231 | | - | |
9232 | | - | |
9233 | | - | |
9234 | | - | |
9235 | | - | |
9236 | | - | |
| 9227 | + | |
| 9228 | + | |
| 9229 | + | |
| 9230 | + | |
9237 | 9231 | | |
9238 | 9232 | | |
9239 | | - | |
9240 | | - | |
| 9233 | + | |
9241 | 9234 | | |
9242 | 9235 | | |
9243 | 9236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4768 | 4768 | | |
4769 | 4769 | | |
4770 | 4770 | | |
4771 | | - | |
4772 | | - | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
4773 | 4776 | | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
4774 | 4780 | | |
4775 | 4781 | | |
4776 | 4782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
532 | 535 | | |
533 | 536 | | |
534 | 537 | | |
| |||
554 | 557 | | |
555 | 558 | | |
556 | 559 | | |
557 | | - | |
558 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
559 | 564 | | |
560 | 565 | | |
561 | 566 | | |
| 567 | + | |
| 568 | + | |
562 | 569 | | |
563 | 570 | | |
564 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1531 | 1531 | | |
1532 | 1532 | | |
1533 | 1533 | | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
1534 | 1550 | | |
1535 | 1551 | | |
1536 | 1552 | | |
| |||
0 commit comments