Commit ad5a363
committed
Fix error message when "import given" is missing
`findHiddenImplicitsCtx` is necessary for the error message to contain
the line:
> Note: given instance given_Int in object A was not considered because
> it was not imported with `import given`.
But it looks like we accidentally stopped using it in
1760da3, this commit restores the
previous behavior.1 parent 1ed25ce commit ad5a363
File tree
2 files changed
+8
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/neg
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
| 879 | + | |
| 880 | + | |
880 | 881 | | |
881 | 882 | | |
882 | 883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments