• Robert Griesemer's avatar
    go/gcimporter: fix importing of anonymous interfaces · 950fa673
    Robert Griesemer authored
    Imported interfaces must be completed, whether they are named or not.
    The original code was collecting all types (including anonymous ones)
    in the importer's typList. That list was used in the end to complete
    interface types. When we introduced tracking of named types only, we
    lost anonymous interfaces. Use an independent list of interface types
    so the completion code is independent of which types are tracked.
    
    Added test and factored some of the existing tests.
    
    Fixes #20046.
    
    Change-Id: Icd1329032aec33f96890380dd5042de3bef8cdc7
    Reviewed-on: https://go-review.googlesource.com/41198Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    950fa673
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...