You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.9.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What did you do?
Run go vet on the following file:
package main
import "fmt"
type T int
func (t T) String() string { return "t" }
func main() {
fmt.Printf("%s", [1]T{0})
fmt.Printf("%s", []T{0})
}
What did you expect to see?
No errors.
What did you see instead?
For the first line go vet reports arg [1]T{0} for printf verb %s of wrong type: [1]main.T. This is false positive as file executes normally and prints [t][t].
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.9.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What did you do?
Run
go vet
on the following file:What did you expect to see?
No errors.
What did you see instead?
For the first line
go vet
reportsarg [1]T{0} for printf verb %s of wrong type: [1]main.T
. This is false positive as file executes normally and prints[t][t]
.The text was updated successfully, but these errors were encountered: