x/tools/gopls: report error only at function signature for incompatible function literals #72977
Labels
Milestone
Content-Length: 247926 | pFad | http://github.com/golang/go/issues/72977
3AFetched URL: http://github.com/golang/go/issues/72977
Alternative Proxies:
gopls version
go env
Env info
What did you do?
In vscode, passed a function literal with an incompatible signature as an argument to another function, i.e.
here,
foo
expectsfunc(int)
but it getsfunc(bool)
.What did you see happen?
The entire function literal (signature and body) is underlined with red squiggles. The problem is with the signature, but the red squiggles over the entire body make it hard to see where the problem actually is.
I.e.
What did you expect to see?
This is a feature request - it would be nice if only the signature is underlined as the problem.
I.e.
Editor and settings
Logs
No response
The text was updated successfully, but these errors were encountered: