go-nyet icon indicating copy to clipboard operation
go-nyet copied to clipboard

Doesn't check named return values

Open alecthomas opened this issue 9 years ago • 0 comments

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
}

alecthomas avatar Feb 26 '15 00:02 alecthomas