-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 golang#37081. Change-Id: Ic1937e01891b3614a6f7965d4384aeb485f3fe3e Reviewed-on: https://go-review.googlesource.com/c/go/+/218617 Reviewed-by: Alan Donovan <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters