1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:04:46 -07:00

go/internal/gcimporter: missed a NewInterface2 call in prior CL

For https://github.com/golang/lint/issues/402.

Change-Id: Ideaac18b4f0be1674bb07010840b3d10e6ebe9d6
Reviewed-on: https://go-review.googlesource.com/118639
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
This commit is contained in:
Robert Griesemer 2018-06-13 10:56:57 -07:00
parent 58c6d92c35
commit 9d855108b0

View File

@ -537,7 +537,7 @@ func (r *importReader) doType(base *types.Named) types.Type {
methods[i] = types.NewFunc(mpos, r.currPkg, mname, msig)
}
typ := types.NewInterface2(methods, embeddeds)
typ := newInterface(methods, embeddeds)
r.p.interfaceList = append(r.p.interfaceList, typ)
return typ
}