typeparams: consider String methods optional TestAPIConsistency correctly reports at Go tip that String methods on the TypeList, TypeParamList, and Instance types are inconsistent. They were added in Go 1.27 as part of proposal go.dev/issue/79287. Instead of trying to add them to the typeparams package API as well, just accept their absence in Go 1.26 and older, and their presence in Go 1.27 and newer. They were added to make debugging easier and aren't otherwise critical. For golang/go#79287. For golang/go#50447. For golang/go#79683. Change-Id: I4cf0b83d1bb4a7add3308312e921b340fe54a554 Reviewed-on: https://go-review.googlesource.com/c/exp/+/783322 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This subrepository holds experimental and deprecated (in the old directory) packages.
The idea for this subrepository originated as the pkg/exp directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.