]> Cypherpunks repositories - gostls13.git/commit
go/types: handle imported aliases
authorRobert Griesemer <gri@golang.org>
Tue, 1 Nov 2016 17:38:24 +0000 (10:38 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Nov 2016 20:33:58 +0000 (20:33 +0000)
commite22c79660d96187b672a92622d171066a0d5c5c2
tree07670991658d6afc14ba71a49722a7e9f6d71f1a
parent34c480afa89a4efa917f30592d8c095dbaf7612e
go/types: handle imported aliases

When we lookup a qualified identifier, we need to unpack
an alias. Do this in all places, not just one. Duh!

Fixes #17716.
For #17592.

Change-Id: I58d57b17cc635d0408b370f109c719c16757fd8e
Reviewed-on: https://go-review.googlesource.com/32534
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/api_test.go
src/go/types/call.go
src/go/types/decl.go
src/go/types/testdata/alias.go [new file with mode: 0644]
src/go/types/typexpr.go