Can we have "did you mean..." for top-level names rather than just methods #18682
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
Compiler version
3.3.1
Minimized example
Mis-typing a method results in a nice suggestion, presumably using Levenshtein distance or something:
But mis-typing a free variable name doesn't:
Could we make mis-typed top level names give nice suggestions too? Presumably we already know everything that is in scope, and can do a Levenshtein distance comparison to find any that look close enough to suggest
The text was updated successfully, but these errors were encountered: