Commit 0a6f9bb
committed
Don't issue implicit errors if parameter has default value
If implicit parameters have default values then we try to re-type the
application with default values supplied as arguments. So far we
fell back to the original errors if retyping failed, which can lead
to confusing error messages. We now stick with the retyping in all cases.
Fixes #148421 parent d8e50f2 commit 0a6f9bb
File tree
3 files changed
+23
-8
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/neg
3 files changed
+23
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3539 | 3539 | | |
3540 | 3540 | | |
3541 | 3541 | | |
3542 | | - | |
3543 | | - | |
3544 | | - | |
3545 | | - | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | | - | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3550 | 3546 | | |
3551 | 3547 | | |
3552 | 3548 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments