Skip to content

Commit 328ba3e

Browse files
committed
fix generics
1 parent d6a39ef commit 328ba3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/golinters/goanalysis/runner_loadingpackage.go

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func (lp *loadingPackage) loadFromSource(loadMode LoadMode) error {
123123

124124
pkg.TypesInfo = &types.Info{
125125
Types: make(map[ast.Expr]types.TypeAndValue),
126+
Instances: make(map[*ast.Ident]types.Instance),
126127
Defs: make(map[*ast.Ident]types.Object),
127128
Uses: make(map[*ast.Ident]types.Object),
128129
Implicits: make(map[ast.Node]types.Object),

0 commit comments

Comments
 (0)