mirror of
https://github.com/golang/go
synced 2024-11-21 11:24:39 -07:00
go/internal/gcimporter: replace call to deprecated NewSignature
Replace "types.NewSignature" with "types.NewSignatureType".
This commit is contained in:
parent
e8b5bc63be
commit
6015054140
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user