Commit 2210ea6
committed
[CS] Avoid emitting invalid binding diagnostic in more cases
Also avoid emitting the diagnostic for an out of
place binding pattern if there's an existing fix
on a parent call expression, as that's the real
source of the failure.
rdar://1130253511 parent a219cfa commit 2210ea6
File tree
2 files changed
+31
-7
lines changed- lib/Sema
- test/Constraints
2 files changed
+31
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8365 | 8365 | | |
8366 | 8366 | | |
8367 | 8367 | | |
8368 | | - | |
8369 | | - | |
8370 | | - | |
8371 | | - | |
8372 | | - | |
8373 | | - | |
| 8368 | + | |
| 8369 | + | |
| 8370 | + | |
| 8371 | + | |
| 8372 | + | |
| 8373 | + | |
| 8374 | + | |
8374 | 8375 | | |
8375 | 8376 | | |
8376 | 8377 | | |
| |||
8380 | 8381 | | |
8381 | 8382 | | |
8382 | 8383 | | |
8383 | | - | |
| 8384 | + | |
8384 | 8385 | | |
8385 | 8386 | | |
8386 | 8387 | | |
| |||
| 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 | + | |
0 commit comments