mirror of https://github.com/golang/go.git
For some use-cases, it is helpful to compute predicates between uninstantiated generic types. This CL implements one such predicate for types.AssignableTo, a helper GenericAssignableTo which reports if, for generic types V and T with the same number of type parameters, all instantiations V[A_1, ..., A_N] are assignable to the corresponding instantiation T[A_1, ..., A_N]. For #50887 For #50447 Change-Id: I7a0550fba05666bb2375d478d5390a123e09f556 Reviewed-on: https://go-review.googlesource.com/c/tools/+/383094 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| example | ||
| genericfeatures | ||
| common.go | ||
| common_test.go | ||
| copytermlist.go | ||
| enabled_go117.go | ||
| enabled_go118.go | ||
| normalize.go | ||
| normalize_test.go | ||
| termlist.go | ||
| typeparams_go117.go | ||
| typeparams_go118.go | ||
| typeparams_test.go | ||
| typeterm.go | ||