Commit c3692ee
committed
Detect case where two alternatives are the same after widening ExprTypes
In implicit or extension method search we might get two alternatives that are different
but that point to the same singleton type after widening ExprTypes. In that case we can
arbitrarily pick one of them instead of declaring an ambiguity.
Fixes #187681 parent 38559d7 commit c3692ee
File tree
2 files changed
+28
-7
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+28
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1780 | 1780 | | |
1781 | 1781 | | |
1782 | 1782 | | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1789 | 1796 | | |
1790 | | - | |
| 1797 | + | |
1791 | 1798 | | |
1792 | 1799 | | |
1793 | 1800 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments