Skip to content

Commit 0b4918d

Browse files
committed
govet: fix stdversion
1 parent e7d6802 commit 0b4918d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pkg/goanalysis/runner_loadingpackage.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ func (lp *loadingPackage) loadFromSource(loadMode LoadMode) error {
125125
pkg.IllTyped = true
126126

127127
pkg.TypesInfo = &types.Info{
128-
Types: make(map[ast.Expr]types.TypeAndValue),
129-
Instances: make(map[*ast.Ident]types.Instance),
130-
Defs: make(map[*ast.Ident]types.Object),
131-
Uses: make(map[*ast.Ident]types.Object),
132-
Implicits: make(map[ast.Node]types.Object),
133-
Scopes: make(map[ast.Node]*types.Scope),
134-
Selections: make(map[*ast.SelectorExpr]*types.Selection),
128+
Types: make(map[ast.Expr]types.TypeAndValue),
129+
Instances: make(map[*ast.Ident]types.Instance),
130+
Defs: make(map[*ast.Ident]types.Object),
131+
Uses: make(map[*ast.Ident]types.Object),
132+
Implicits: make(map[ast.Node]types.Object),
133+
Selections: make(map[*ast.SelectorExpr]*types.Selection),
134+
Scopes: make(map[ast.Node]*types.Scope),
135+
FileVersions: make(map[*ast.File]string),
135136
}
136137

137138
importer := func(path string) (*types.Package, error) {

0 commit comments

Comments
 (0)