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

Fields in types defined as a named struct incorrectly show as unresolved. #1888

Closed
JasonRosenberg opened this issue Sep 24, 2015 · 0 comments
Assignees
Milestone

Comments

@JasonRosenberg
Copy link

The code below compiles fine from the command line, but in IntelliJ, the 'Scheme:' and 'Auth:' field references in the return statement show as 'undefined', and are colored red.

package bug

type setAuthRequest auth
type auth struct {
    Type   int32
    Scheme string
    Auth   []byte
}

func AddAuth(scheme string, auth []byte) *setAuthRequest {
    return &setAuthRequest{Type: 0, Scheme: scheme, Auth: auth}
}
@ignatov ignatov added this to the 1.0.0 milestone Sep 24, 2015
@ignatov ignatov closed this as completed Sep 30, 2015
ignatov added a commit that referenced this issue Sep 30, 2015
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