-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/types/objectpath: canonical order for methods
The method ordering in types can depend on the parse order for types. In order to make objectpath robust against this, simply encode all methods with respect to a canonical lexicographical ordering. Fixes golang/go#44195 Change-Id: I4177d9b4e094452f71d4db1813a5a36b54d0d70a Reviewed-on: https://go-review.googlesource.com/c/tools/+/354433 Run-TryBot: Tim King <taking@google.com> Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Trust: Zvonimir Pavlinovic <zpavlinovic@google.com>
- Loading branch information
1 parent
c5188f2
commit ee04797
Showing
2 changed files
with
114 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