github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/go/internal/gcimporter/support_go118.go (about) 1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build go1.18 6 // +build go1.18 7 8 package gcimporter 9 10 import "go/types" 11 12 const iexportVersion = iexportVersionGenerics 13 14 // additionalPredeclared returns additional predeclared types in go.1.18. 15 func additionalPredeclared() []types.Type { 16 return []types.Type{ 17 // comparable 18 types.Universe.Lookup("comparable").Type(), 19 20 // any 21 types.Universe.Lookup("any").Type(), 22 } 23 }