1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:34:40 -07:00

go/internal/gcimporter: replace call to deprecated NewSignature

Replace "types.NewSignature" with "types.NewSignatureType".
This commit is contained in:
apocelipes 2024-03-06 06:19:14 +09:00
parent e8b5bc63be
commit 6015054140

View File

@ -514,7 +514,7 @@ func (pr *pkgReader) objIdx(idx pkgbits.Index) (*types.Package, string) {
sig := fn.Type().(*types.Signature)
recv := types.NewVar(fn.Pos(), fn.Pkg(), "", named)
methods[i] = types.NewFunc(fn.Pos(), fn.Pkg(), fn.Name(), types.NewSignature(recv, sig.Params(), sig.Results(), sig.Variadic()))
methods[i] = types.NewFunc(fn.Pos(), fn.Pkg(), fn.Name(), types.NewSignatureType(recv, nil, nil, sig.Params(), sig.Results(), sig.Variadic()))
}
embeds := make([]types.Type, iface.NumEmbeddeds())