commit | 677d2ff680c188ddb7dcd2bfa6bc7d3f2f2f75b2 | [log] [tgz] |
---|---|---|
author | Alan Donovan <adonovan@google.com> | Mon Sep 10 21:30:46 2018 -0400 |
committer | Alan Donovan <adonovan@google.com> | Tue Sep 11 13:30:44 2018 +0000 |
tree | fdec2f43c2a8a6020f9837f4810a897d37602e38 | |
parent | 18207bb12d3a3338e74403fed8ca1ba866dd3a57 [diff] |
go/ssa: use correct type for variadic parameter in wrapper methods For some reason, the type of the last Param in a wrapper function for a variadic method (T) f(...U) had type [][]U instead of []U. (Possibly a workaround for a long-since fixed bug in go/types?) Added a sanity check to ensure that the common suffix of fn.Params and fn.Signature.Params match in type. Fixes golang/go#27453 Change-Id: I9506f4f67a7ff3a283e9ec0142f638aad00287a9 Reviewed-on: https://go-review.googlesource.com/134515 Reviewed-by: Robert Griesemer <gri@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.