Commit 8f69b9f
committed
[ConstraintSystem] Use '# of overloads' as a tie-breaker in ambiguities
The deepest expression is the one that introduced the ambiguity into
the chain, so depth and index should be deciding factors and number of
overloads - a tie-breaker, while choosing what to diagnose.
Resolves: rdar://943602301 parent e63df1e commit 8f69b9f
File tree
3 files changed
+32
-11
lines changed- lib/Sema
- test
- Constraints
- expr
3 files changed
+32
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4711 | 4711 | | |
4712 | 4712 | | |
4713 | 4713 | | |
4714 | | - | |
4715 | | - | |
| 4714 | + | |
| 4715 | + | |
4716 | 4716 | | |
4717 | | - | |
| 4717 | + | |
4718 | 4718 | | |
4719 | 4719 | | |
4720 | 4720 | | |
4721 | | - | |
4722 | | - | |
| 4721 | + | |
| 4722 | + | |
4723 | 4723 | | |
4724 | 4724 | | |
4725 | 4725 | | |
| |||
4780 | 4780 | | |
4781 | 4781 | | |
4782 | 4782 | | |
4783 | | - | |
| 4783 | + | |
4784 | 4784 | | |
4785 | 4785 | | |
4786 | 4786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
566 | | - | |
| 565 | + | |
| 566 | + | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
| 588 | + | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
| 593 | + | |
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| |||
0 commit comments