mirror of https://github.com/golang/go.git
Recent changes to the go/ast APIs for type parameters have broken the internal/typeparams package when built with -tags=typeparams. Fix this by adjusting the internal/typeparams API. Also update a few tests accordingly. Bump the build constraint used by the internal/typeparams package to go1.18, as we are no longer compatible with the 1.17 typeparams API. It is no long possible to opt in to type parameter specific functionality 1.17, which is fine as the dev.typeparams branch has moved to 1.18. Even after these fixes, not all x/tools tests pass with go1.18. Some completion tests are failing due to finding 'any' in types.Universe. Change-Id: I5f92870aaf7853e531e3a154987f98520a52d70c Reviewed-on: https://go-review.googlesource.com/c/tools/+/339349 Trust: Robert Findley <rfindley@google.com> Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> |
||
|---|---|---|
| .. | ||
| common.go | ||
| common_test.go | ||
| notypeparams.go | ||
| typeparams.go | ||