Commit ebdef12
committed
[ContraintSystem] Augment
Since constraint solver can now handle statements, patterns, and declarations,
it's possible to that ambiguity could be detected in a non-expression context,
for example - pattern matching in switch statements. Augment `diagnoseAmbiguity`
to accept overloads with non-expression anchors and diagnose them in order of
their appearance in a solution.diagnoseAmbiguity to diagnose non-expression ambiguities1 parent 613fdca commit ebdef12
File tree
2 files changed
+28
-14
lines changed- lib/Sema
- test/expr/closure
2 files changed
+28
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4501 | 4501 | | |
4502 | 4502 | | |
4503 | 4503 | | |
4504 | | - | |
| 4504 | + | |
4505 | 4505 | | |
4506 | 4506 | | |
4507 | 4507 | | |
| |||
4511 | 4511 | | |
4512 | 4512 | | |
4513 | 4513 | | |
4514 | | - | |
| 4514 | + | |
4515 | 4515 | | |
4516 | | - | |
| 4516 | + | |
4517 | 4517 | | |
4518 | 4518 | | |
4519 | | - | |
| 4519 | + | |
4520 | 4520 | | |
4521 | 4521 | | |
4522 | 4522 | | |
4523 | 4523 | | |
4524 | | - | |
4525 | | - | |
4526 | | - | |
4527 | | - | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
4528 | 4527 | | |
4529 | | - | |
4530 | | - | |
4531 | | - | |
4532 | | - | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
4533 | 4541 | | |
4534 | 4542 | | |
4535 | 4543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
241 | 247 | | |
242 | 248 | | |
243 | 249 | | |
| |||
0 commit comments