]> Cypherpunks repositories - gostls13.git/commit
go/internal/gccgoimporter: revise previous anonymous field fix.
authorThan McIntosh <thanm@google.com>
Tue, 23 Apr 2019 16:38:36 +0000 (12:38 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 24 Apr 2019 19:36:29 +0000 (19:36 +0000)
commitd152ff286f6ef2b25bd95bf97a429a1dc40ba4b5
treec91741c819b84d27a026648d596323146dd571a6
parent13d0af4e704bee164f873701e326048bdaf23933
go/internal/gccgoimporter: revise previous anonymous field fix.

Revise the fix for #31540 to take into account the possibility that we
may see an alias to a name that has already been installed into
package scope. This scenario is not possible to reproduce with the
current importer unit tests; changes to the harness to enable this
scenario will be added in a later CL.

Updates #31540.

Change-Id: Ie155d5e0b998604177a78471cba2413f57d40229
Reviewed-on: https://go-review.googlesource.com/c/go/+/173440
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/internal/gccgoimporter/parser.go