structcheck false positives with embedded structs
package main
type Foo struct {
a int
}
type Bar struct {
Foo
}
func (b Bar) A() int {
return b.a
}
func main() {
Bar{}.A()
}
$ structcheck ./...
ex.go:4: Foo.a
package main
type Foo struct {
a int
}
type Bar struct {
Foo
}
func (b Bar) A() int {
return b.a
}
func main() {
Bar{}.A()
}
$ structcheck ./...
ex.go:4: Foo.a