-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apidiff: support instantiated generic types
Use types.Types as keys in the map of correspondences, rather than *types.TypeNames. There was no reason not do this before, except convenience; prior to generics, named types were the same iff their TypeNames were. Also, update the definition of correspondence to handle instantiated generic types, by checking that their TypeArg lists and origins correspond. Also, we now don't need the hack that was typesEquivalent. We can always compare two types from the same world with types.Identical. Change-Id: Ic5c7bb0be052376367c84da8680ca86b4a1dafc4 Reviewed-on: https://go-review.googlesource.com/c/exp/+/513136 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Robert Findley <[email protected]>
- Loading branch information
Showing
3 changed files
with
88 additions
and
57 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
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