We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to https://golang.org/ref/spec#Function_types, a function can declare its return types as a list of parameters. The following function, therefore, is valid:
func f() (a, b io.Reader, c error) { return }
Gocode, however, incorrectly determines that the second return type from f is error, not io.Reader, as demonstrated by the following:
f
error
io.Reader
package main func f() (a, b io.Reader, c error) { return } func main() { a, b, c := f() b. }
With the above saved as issue.go:
issue.go
$ gocode -in ./issue.go autocomplete 94 Found 1 candidates: func Error() string
Thank you for gocode!
gocode
The text was updated successfully, but these errors were encountered:
c7fddb3
Thanks for reporting it.
Sorry, something went wrong.
No branches or pull requests
According to https://golang.org/ref/spec#Function_types, a function can declare its return types as a list of parameters. The following function, therefore, is valid:
Gocode, however, incorrectly determines that the second return type from
f
iserror
, notio.Reader
, as demonstrated by the following:With the above saved as
issue.go
:Thank you for
gocode
!The text was updated successfully, but these errors were encountered: