Skip to content

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

Closed
@JasonRosenberg

Description

@JasonRosenberg

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}
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions