golang/go
View on GitHubcmd/vet: mismatch between Printf checks and actual behaviour
Open
#27,672 opened on Sep 14, 2018
AnalysisNeedsFixhelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
What version of Go are you using (go version)?
go version go1.11 linux/amd64
What did you do?
- go run https://play.golang.org/p/5rBLFTsNpqZ
- go vet https://play.golang.org/p/5rBLFTsNpqZ
- compare outputs
What did you expect to see?
Vet to accept the first Printf call and to flag the second one
What did you see instead?
Vet flags the first call and accepts the second one