barakmich / go-nyet

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

Doesn't check named return values #3

Open alecthomas opened 9 years ago

alecthomas commented 9 years ago

The following doesn't seem to report as an issue, but I would expect it to:

func foo() (name string) {
  if true {
    name := "foo"
    println(name)
  }
  return
}