aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader/loader_go118.go
blob: d545160e7826318303dde4575c90ac8447eba489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//go:build go1.18
// +build go1.18

package loader

// Workaround for Go 1.17 support. Should be removed once we drop Go 1.17
// support.

import (
	"go/ast"
	"go/types"
)

func init() {
	addInstances = func(info *types.Info) {
		info.Instances = make(map[*ast.Ident]types.Instance)
	}
}