mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: implement package-level aliases (no export yet)
Requires -newparser=1. For #17487. For #16339. Change-Id: I156fb0c0f8a97e8c72dbbfbd7fe821efee12b957 Reviewed-on: https://go-review.googlesource.com/31597 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
7e9f420ddf
commit
1b0cf430dd
4 changed files with 188 additions and 2 deletions
|
|
@ -943,6 +943,8 @@ func mkpackage(pkgname string) {
|
|||
s.Def.Name.Pack.Used = true
|
||||
}
|
||||
|
||||
// TODO(gri) This will also affect exported aliases.
|
||||
// Need to fix this.
|
||||
s.Def = nil
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue