barakmich / go-nyet

More aggressive `go vet`
BSD 2-Clause "Simplified" License
89 stars 8 forks source link

Blank identifier is reported as an unused variable #13

Closed ghost closed 4 years ago

ghost commented 9 years ago
package main

func f(_ int) {
        _ = 1
}
$ go-nyet .
1.go:3:8:Declared variable `_` which goes unused
1.go:4:2:`_` gets covered here