mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
cmd/compile/internal/noder: remove unnecessary assignment to the blank identifier
Change-Id: I51dd087e630bf433c30d0aaaf3715b62524eb432 Reviewed-on: https://go-review.googlesource.com/c/go/+/436647 Auto-Submit: Robert Griesemer <gri@google.com> Run-TryBot: xie cui <523516579@qq.com> Reviewed-by: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Robert Griesemer <gri@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
dc53738f58
commit
157e018fc3
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ func (g *genInst) instantiateMethods() {
|
|||
// Lookup the method on the base generic type, since methods may
|
||||
// not be set on imported instantiated types.
|
||||
baseType := typ.OrigType()
|
||||
for j, _ := range typ.Methods().Slice() {
|
||||
for j := range typ.Methods().Slice() {
|
||||
if baseType.Methods().Slice()[j].Nointerface() {
|
||||
typ.Methods().Slice()[j].SetNointerface(true)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue