From 40365c5521c7a7da6fd22b688d89758e3967ec67 Mon Sep 17 00:00:00 2001 From: Aleksey Bakin Date: Sun, 3 Apr 2022 18:51:59 +0300 Subject: [PATCH] bug: use deprecated types.NewSignature to support go1.17 --- pkg/analyzer/analyzer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/analyzer/analyzer.go b/pkg/analyzer/analyzer.go index 8c6f786..3064ac3 100644 --- a/pkg/analyzer/analyzer.go +++ b/pkg/analyzer/analyzer.go @@ -254,7 +254,7 @@ func (t thelper) buildTestCheckFuncOpts(pass *analysis.Pass, ctxType types.Type) fnHelper: tHelper, subRun: tRun, hpType: tType, - subTestFuncType: types.NewSignatureType(nil, nil, nil, types.NewTuple(tVar), nil, false), + subTestFuncType: types.NewSignature(nil, types.NewTuple(tVar), nil, false), ctxType: ctxType, checkBegin: t.enabledChecks.Enabled(checkTBegin), checkFirst: t.enabledChecks.Enabled(checkTFirst), @@ -315,7 +315,7 @@ func (t thelper) buildBenchmarkCheckFuncOpts(pass *analysis.Pass, ctxType types. fnHelper: bHelper, subRun: bRun, hpType: types.NewPointer(bObj.Type()), - subTestFuncType: types.NewSignatureType(nil, nil, nil, types.NewTuple(bVar), nil, false), + subTestFuncType: types.NewSignature(nil, types.NewTuple(bVar), nil, false), ctxType: ctxType, checkBegin: t.enabledChecks.Enabled(checkBBegin), checkFirst: t.enabledChecks.Enabled(checkBFirst),