-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ask did you mean only for accessible members. #17067
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:bug
Comments
som-snytt
added
itype:bug
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Mar 7, 2023
nicolasstucki
added
area:reporting
Error reporting including formatting, implicit suggestions, etc
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Mar 8, 2023
Should we (and does Scala 2) just blanket disregard protected/private, or are we able to show them when in a scope within which they're accessible? Reminds me of the scala-internals thread linked in #4228. |
som-snytt
added
the
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
label
Oct 12, 2023
This was referenced Oct 12, 2023
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Oct 23, 2023
1. Only show accessible members 2. Show several alternatives if they are at same distance. Unlike Scala 2, we do not show alternatives at larger distance. I fear that would produce more noise than signal. Fixes scala#17067
bishabosha
added a commit
that referenced
this issue
Oct 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:bug
Compiler version
3.3.1-RC1-bin-SNAPSHOT-git-6ad22aa
Minimized code
Output
As shown.
Expectation
No suggestion of
reversed
, as in Scala 2.The Scala 2 backport of "did you mean...?" includes further improvements which are worth forward porting.
scala/scala#10262
where further suggestions are at a farther edit distance.
The text was updated successfully, but these errors were encountered: