What version of Go are you using (go version)?
$ go version
go version go1.17 linux/amd64
Does this issue reproduce with the latest release?
Yes
What did you do?
package main
type T0 struct {
x int
}
func (T0) M0() {}
type T2 struct {
T0
}
type Q *T2
var q Q
func main() {
q.M0()
}
What did you expect to see?
q.M0 undefined (type Q has no field or method M0)
What did you see instead?
q.T0.M0 undefined (type T0 has no field or method M0, but does have M0)
What version of Go are you using (
go version)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
What did you see instead?