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