Commit 947a6c3
committed
[ConstraintSystem] In the solver, only generate constraints for wrapped
parameter attributes for closure parameters.
For regular function parameters, these constraints will have already been
generated and solved when computing the backing property wrapper type at
the function declaration. If the solver also generates these constraints
when type checking a function call, it leads to misleading diagnostics
about an argument mismatch that will appear at the function declaration
instead of the call-site.1 parent 138c117 commit 947a6c3
File tree
3 files changed
+13
-2
lines changed- lib/Sema
- test/Sema
3 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4150 | 4150 | | |
4151 | 4151 | | |
4152 | 4152 | | |
4153 | | - | |
| 4153 | + | |
| 4154 | + | |
4154 | 4155 | | |
4155 | 4156 | | |
4156 | 4157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8897 | 8897 | | |
8898 | 8898 | | |
8899 | 8899 | | |
| 8900 | + | |
| 8901 | + | |
| 8902 | + | |
| 8903 | + | |
| 8904 | + | |
8900 | 8905 | | |
8901 | 8906 | | |
8902 | 8907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
0 commit comments