Commit 74f8597
committed
Fix #8632: Reveal "not found" message more often
If a creator expression is tried, we want to make sure we see a "not found" message,
so that we fall back in this case to reporting the original select failure. To this
purpose
- we check for stable path prefixes after doing the selection proper
- we recognize leading not found messages also if they are following by other messages1 parent 3eafc18 commit 74f8597
File tree
3 files changed
+10
-6
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/neg
3 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1066 | 1067 | | |
1067 | 1068 | | |
1068 | 1069 | | |
1069 | | - | |
| 1070 | + | |
1070 | 1071 | | |
1071 | 1072 | | |
1072 | 1073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | 493 | | |
495 | | - | |
496 | 494 | | |
497 | 495 | | |
| 496 | + | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments