Skip to content
New issue

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

Incorrect type of an argument that is a function with named return values #1869

Closed
carmandrew opened this issue Sep 17, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@carmandrew
Copy link

I think there's a problem when inferring the type of an argument that is a function with named return values.

For example, this shows no errors as expected:

func foo(fn func() error) {
    err := fn()
    err.Error()
}

However this shows an err on the err.Error() line:

func foo(fn func() (myErr error)) {
    err := fn()
    err.Error()
}

like so:
envelope_go_-_s0_-____code_s0_

Probably because it seems to think that err has the type func() (myErr error):
envelope_go_-_s0_-____code_s0_

Using intellij 14.1.4 and plugin version 0.9.485

@dlsniper dlsniper added this to the 1.0.0 milestone Sep 17, 2015
@ignatov
Copy link
Contributor

ignatov commented Sep 18, 2015

Please try tonight build in several hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants