mirror of https://github.com/golang/go.git
Add a new package internal/typeparams/genericfeatures, factoring out the check for usage of generics from the usesgenerics checker. For tests operating on the standard library, this allows us to explicitly detect usage of generics, rather than relying on a hard-coded list. To make this work, I switched the go/ssa standard library test to use go/packages rather than go/loader. This resulted in finding 457 packages versus 676 (likely due to tests), but my assumption is that this is still enough coverage. Change-Id: I6ba32fb4068dd7f5eedb55c2081c642665ed124a Reviewed-on: https://go-review.googlesource.com/c/tools/+/355972 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Tim King <taking@google.com> |
||
|---|---|---|
| .. | ||
| testenv.go | ||
| testenv_112.go | ||