From 6015054140eebe7777007950c0fd1578553b6c59 Mon Sep 17 00:00:00 2001 From: apocelipes Date: Wed, 6 Mar 2024 06:19:14 +0900 Subject: [PATCH] go/internal/gcimporter: replace call to deprecated NewSignature Replace "types.NewSignature" with "types.NewSignatureType". --- src/go/internal/gcimporter/ureader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/internal/gcimporter/ureader.go b/src/go/internal/gcimporter/ureader.go index 5397a2796f7..4d69353a851 100644 --- a/src/go/internal/gcimporter/ureader.go +++ b/src/go/internal/gcimporter/ureader.go @@ -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())