Custom (synonym) suggestions for nonexistent methods #51398
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Currently if the user types a method that does not exist, a suggestion may be provided if what was typed is reasonably close to an existing method.
However, this only catches typos — completely different names aren't considered "close". I think it'd be helpful, especially for people coming from other languages (or switching between them frequently) to be able to specify custom suggestions for potential alternate names, so that something like the following works:
The text was updated successfully, but these errors were encountered: