Suggestion "you might have meant to call the method with the fully-qualified path" without a call #103325
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
It's odd for the message to say "you might have meant to call..." and then show a suggestion that does not call anything.
Possible improvements
I'm not sure which would be best:
Btw, there don't seem to be any tests that expect this message. It might be good to add one to ensure the common case (where it is a call expression) continues to have a good error message.
The text was updated successfully, but these errors were encountered: