• 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
..
ast Loading commit data...
build Loading commit data...
constant Loading commit data...
doc Loading commit data...
format Loading commit data...
importer Loading commit data...
internal Loading commit data...
parser Loading commit data...
printer Loading commit data...
scanner Loading commit data...
token Loading commit data...
types Loading commit data...