Commit 746135b
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 29f6f01 commit 746135b
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 | |
|---|---|---|---|
| |||
6434 | 6434 | | |
6435 | 6435 | | |
6436 | 6436 | | |
6437 | | - | |
| 6437 | + | |
| 6438 | + | |
6438 | 6439 | | |
6439 | 6440 | | |
6440 | 6441 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
665 | 678 | | |
666 | 679 | | |
667 | 680 | | |
| |||
885 | 898 | | |
886 | 899 | | |
887 | 900 | | |
888 | | - | |
| 901 | + | |
| 902 | + | |
889 | 903 | | |
890 | 904 | | |
891 | 905 | | |
| |||
914 | 928 | | |
915 | 929 | | |
916 | 930 | | |
917 | | - | |
| 931 | + | |
918 | 932 | | |
919 | 933 | | |
920 | 934 | | |
| |||
1657 | 1671 | | |
1658 | 1672 | | |
1659 | 1673 | | |
1660 | | - | |
| 1674 | + | |
1661 | 1675 | | |
1662 | 1676 | | |
1663 | 1677 | | |
| |||
1841 | 1855 | | |
1842 | 1856 | | |
1843 | 1857 | | |
1844 | | - | |
| 1858 | + | |
1845 | 1859 | | |
1846 | 1860 | | |
1847 | 1861 | | |
| |||
| 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