diff options
Diffstat (limited to 'internal/typesinternal/types_118.go')
-rw-r--r-- | internal/typesinternal/types_118.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/typesinternal/types_118.go b/internal/typesinternal/types_118.go new file mode 100644 index 000000000..a42b072a6 --- /dev/null +++ b/internal/typesinternal/types_118.go @@ -0,0 +1,19 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.18 +// +build go1.18 + +package typesinternal + +import ( + "go/types" +) + +func init() { + SetGoVersion = func(conf *types.Config, version string) bool { + conf.GoVersion = version + return true + } +} |