Commit 5c48012
committed
[CS] Add a narrow hack for rdar://139234188
Currently we set `FunctionRefKind::Compound` for
enum element patterns with tuple sub-patterns to
ensure the member has argument labels stripped. As
such, we need to account for the correct application
level in `getNumApplications`. We ought to be
setting the correct FunctionRefKind and properly
handling the label matching in the solver though.
We also ought to consider changing FunctionRefKind
such that "is compound" is a separate bit from the
application level.
rdar://1392341881 parent 48b8e6b commit 5c48012
File tree
4 files changed
+48
-8
lines changed- include/swift/Sema
- lib/Sema
- test/Constraints
4 files changed
+48
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6445 | 6445 | | |
6446 | 6446 | | |
6447 | 6447 | | |
6448 | | - | |
| 6448 | + | |
| 6449 | + | |
6449 | 6450 | | |
6450 | 6451 | | |
6451 | 6452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10153 | 10153 | | |
10154 | 10154 | | |
10155 | 10155 | | |
10156 | | - | |
10157 | | - | |
| 10156 | + | |
| 10157 | + | |
10158 | 10158 | | |
10159 | 10159 | | |
10160 | 10160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
666 | 679 | | |
667 | 680 | | |
668 | 681 | | |
| |||
886 | 899 | | |
887 | 900 | | |
888 | 901 | | |
889 | | - | |
| 902 | + | |
| 903 | + | |
890 | 904 | | |
891 | 905 | | |
892 | 906 | | |
| |||
915 | 929 | | |
916 | 930 | | |
917 | 931 | | |
918 | | - | |
| 932 | + | |
919 | 933 | | |
920 | 934 | | |
921 | 935 | | |
| |||
1665 | 1679 | | |
1666 | 1680 | | |
1667 | 1681 | | |
1668 | | - | |
| 1682 | + | |
1669 | 1683 | | |
1670 | 1684 | | |
1671 | 1685 | | |
| |||
1849 | 1863 | | |
1850 | 1864 | | |
1851 | 1865 | | |
1852 | | - | |
| 1866 | + | |
1853 | 1867 | | |
1854 | 1868 | | |
1855 | 1869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments