aboutsummaryrefslogtreecommitdiffhomepage
path: root/compiler/compiler_go118.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/compiler_go118.go')
-rw-r--r--compiler/compiler_go118.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/compiler/compiler_go118.go b/compiler/compiler_go118.go
deleted file mode 100644
index 799970d76..000000000
--- a/compiler/compiler_go118.go
+++ /dev/null
@@ -1,18 +0,0 @@
-//go:build go1.18
-// +build go1.18
-
-package compiler
-
-// Workaround for Go 1.17 support. Should be removed once we drop Go 1.17
-// support.
-
-import "go/types"
-
-func init() {
- typeParamUnderlyingType = func(t types.Type) types.Type {
- if t, ok := t.(*types.TypeParam); ok {
- return t.Underlying()
- }
- return t
- }
-}