go/types: fix method set computation
When computing method sets, any struct field that "shadows" a method at a lower embedding level eliminates that method from the method set. Treat any field at a given level as a "collision" for any methods at lower embedding level. Method sets are not directly used by go/types (except for self- verification in debug mode); they are a functionality provided by go/types. Thus, the method sets that go/types is using were not affected by this bug. Fixes #37081. Change-Id: Ic1937e01891b3614a6f7965d4384aeb485f3fe3e Reviewed-on: https://go-review.googlesource.com/c/go/+/218617 Reviewed-by:Alan Donovan <adonovan@google.com>
Loading
Please sign in to comment