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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
type myStruct struct { fieldC *int } func bug() { ms := myStruct{fieldC: func(v int) *int { return &v }(10)} _ = time.Duration(*somePointerDurationMillis()) * time.Millisecond _ = time.Millisecond * time.Duration(*somePointerDurationMillis()) _ = time.Duration(*ms.fieldC) * time.Second _ = time.Second * time.Duration(*ms.fieldC) } func somePointerDurationMillis() *int { v := 10 return &v }
Multiplication of durations: `time.Duration(*somePointerDurationMillis()) * time.Millisecond` Multiplication of durations: `time.Millisecond * time.Duration(*somePointerDurationMillis())` Multiplication of durations: `time.Duration(*ms.fieldC) * time.Second` Multiplication of durations: `time.Second * time.Duration(*ms.fieldC)`
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: