Commit 8f63854
committed
Improve error message in overloading resolution
Improve error message when trying to do overloading resolution of alternatives introduces by refinements.
As i8736 shows, it's not so simple to identify overloaded members introduced by refinements, since this can
arise through intersection and de-aliasing. So our best bet is to make the error message clearer at the
point of overloading resolution.1 parent ce30a1c commit 8f63854
File tree
3 files changed
+14
-13
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/neg
3 files changed
+14
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
1782 | | - | |
1783 | 1782 | | |
1784 | 1783 | | |
1785 | 1784 | | |
| |||
3124 | 3123 | | |
3125 | 3124 | | |
3126 | 3125 | | |
3127 | | - | |
3128 | | - | |
| 3126 | + | |
| 3127 | + | |
3129 | 3128 | | |
3130 | 3129 | | |
3131 | | - | |
3132 | | - | |
3133 | | - | |
3134 | | - | |
3135 | | - | |
3136 | | - | |
3137 | | - | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
3138 | 3134 | | |
3139 | 3135 | | |
3140 | | - | |
3141 | 3136 | | |
3142 | 3137 | | |
3143 | 3138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
0 commit comments