You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
It might be desirable to include receiver parameter information in hints for methods. At the very least, when hinting the type of a method expression, we should probably indicate that the method parameter has become a normal parameter.
For example, currently for bytes.Buffer.Write, we hint func Write(p []byte) (n int, err error), but the method expression's type is actually func (*bytes.Buffer, []byte) (int, error).
The text was updated successfully, but these errors were encountered:
I don't think receivers are treated as the "first argument" by the go language... (Even if they are probably treated like that in the generated assembly).
Anyhow, knowing the functions receiver is needed in order to fix this issue in vscode-go: microsoft/vscode-go#2107.
It might be desirable to include receiver parameter information in hints for methods. At the very least, when hinting the type of a method expression, we should probably indicate that the method parameter has become a normal parameter.
For example, currently for
bytes.Buffer.Write
, we hintfunc Write(p []byte) (n int, err error)
, but the method expression's type is actuallyfunc (*bytes.Buffer, []byte) (int, error)
.The text was updated successfully, but these errors were encountered: