golangci-lint/test/testdata/dogsled.go

26 lines
404 B
Go
Raw Permalink Normal View History

//golangcitest:args -Edogsled
2019-09-17 01:44:53 -04:00
package testdata
func Dogsled() {
_ = ret1()
_, _ = ret2()
_, _, _ = ret3() // want "declaration has 3 blank identifiers"
_, _, _, _ = ret4() // want "declaration has 4 blank identifiers"
2019-09-17 01:44:53 -04:00
}
func ret1() (a int) {
return 1
}
func ret2() (a, b int) {
return 1, 2
}
func ret3() (a, b, c int) {
return 1, 2, 3
}
func ret4() (a, b, c, d int) {
return 1, 2, 3, 4
}