Commit b5e9bbb
committed
[CS] Fix
Returning `true` is wrong here as we could have
the error diagnosed by another fix, which if not
handled, would lead to us crashing as we assume
we diagnosed the issue. Instead, return `false`,
allowing us to at least bail with a bad error
rather than a crash.
We still need to go through and update argument
list diagnostic logic to handle patterns, but I'm
leaving that as future work for now.
rdar://107724970
rdar://107651291IgnoreUnresolvedPatternVar::diagnose such that it returns false
1 parent 97be042 commit b5e9bbb
File tree
3 files changed
+33
-3
lines changed- lib/Sema
- test/Constraints
3 files changed
+33
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2145 | 2146 | | |
2146 | 2147 | | |
2147 | 2148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 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 | + | |
0 commit comments