2022-08-24 22:10:51 +02:00

14 lines
282 B
Go

//go:build !windows
//golangcitest:args -Eifshort --internal-cmd-test
package testdata
func DontUseShortSyntaxWhenPossible() {
getValue := func() interface{} { return nil }
v := getValue() // want "variable 'v' is only used in the if-statement .*"
if v != nil {
return
}
}