From a1a7e43daa5ae2f5f1602f3598c5eb0fa74769c9 Mon Sep 17 00:00:00 2001 From: sdghchj Date: Sat, 15 Oct 2022 22:30:10 +0800 Subject: [PATCH] fix issue #1345 about generics --- generics_other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generics_other.go b/generics_other.go index 43acc9577..73488e84b 100644 --- a/generics_other.go +++ b/generics_other.go @@ -17,7 +17,7 @@ func (pkgDefs *PackagesDefinitions) parametrizeGenericType(file *ast.File, origi return original } -func getGenericFieldType(file *ast.File, field ast.Expr) (string, error) { +func getGenericFieldType(file *ast.File, field ast.Expr, genericParamTypeDefs map[string]*genericTypeSpec) (string, error) { return "", fmt.Errorf("unknown field type %#v", field) }