Commit c1d0036
committed
[ConstraintSystem] Bind missing member in pattern match to a hole early
If lookup failed to find a member for a pattern match, let's bind
type variable representing such member to a hole right away, otherwise
there is a risk of missing other potential hole locations in pattern
function type (arguments + result type) because pattern matching
doesn't use 'applicable function' constraint.
Resolves: rdar://656679921 parent e059d5c commit c1d0036
File tree
2 files changed
+50
-4
lines changed- lib/Sema
- test/Constraints
2 files changed
+50
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4887 | 4887 | | |
4888 | 4888 | | |
4889 | 4889 | | |
| 4890 | + | |
| 4891 | + | |
| 4892 | + | |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
| 4899 | + | |
| 4900 | + | |
4890 | 4901 | | |
4891 | 4902 | | |
4892 | 4903 | | |
4893 | 4904 | | |
4894 | | - | |
4895 | | - | |
4896 | | - | |
4897 | | - | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
4898 | 4908 | | |
4899 | 4909 | | |
4900 | 4910 | | |
| |||
8207 | 8217 | | |
8208 | 8218 | | |
8209 | 8219 | | |
| 8220 | + | |
| 8221 | + | |
| 8222 | + | |
| 8223 | + | |
| 8224 | + | |
| 8225 | + | |
| 8226 | + | |
8210 | 8227 | | |
8211 | 8228 | | |
8212 | 8229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
0 commit comments