1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:40:04 -07:00

cmd/compile: use "pw" as receiver name consistently

Change-Id: I912f1326fa442098065b62b7b0ef9048771e4701
Reviewed-on: https://go-review.googlesource.com/c/go/+/506476
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Cuong Manh Le 2023-06-27 09:54:32 +07:00 committed by Gopher Robot
parent 1d04c42045
commit 4550055149

View File

@ -2612,9 +2612,9 @@ func (w *writer) pkgObjs(names ...*syntax.Name) {
// hasImplicitTypeParams reports whether obj is a defined type with // hasImplicitTypeParams reports whether obj is a defined type with
// implicit type parameters (e.g., declared within a generic function // implicit type parameters (e.g., declared within a generic function
// or method). // or method).
func (p *pkgWriter) hasImplicitTypeParams(obj *types2.TypeName) bool { func (pw *pkgWriter) hasImplicitTypeParams(obj *types2.TypeName) bool {
if obj.Pkg() == p.curpkg { if obj.Pkg() == pw.curpkg {
decl, ok := p.typDecls[obj] decl, ok := pw.typDecls[obj]
assert(ok) assert(ok)
if len(decl.implicits) != 0 { if len(decl.implicits) != 0 {
return true return true