Debian Codegraph @

go/analysis/passes/printf/testdata/src/issue68744/issue68744.go

raw symbols SCIP
1 package issue68744
2
3 import "fmt"
4
5 // The use of "any" here is crucial to exercise the bug.
6 // (None of our earlier tests covered this vital detail!)
7 func wrapf(format string, args ...any) { // want wrapf:"printfWrapper"
8 fmt.Printf(format, args...)
9 }
10
11 func _() {
12 wrapf("%s", 123) // want `issue68744.wrapf format %s has arg 123 of wrong type int`
13 }