The package of a struct field is independent of the type of the struct field - the old code was technically not correct. That said, it does not seem possible (or very difficult) to create a test case because for exported anonymous fields that field package doesn't matter (it's not needed for name identity), and non-exported anonymous fields cannot be accessed from an imported package. R=adonovan CC=golang-codereviews https://golang.org/cl/47560043 |
||
|---|---|---|
| astutil | ||
| blog | ||
| call | ||
| cmd | ||
| cover | ||
| dashboard | ||
| go | ||
| godoc | ||
| importer | ||
| imports | ||
| oracle | ||
| playground | ||
| pointer | ||
| present | ||
| ssa | ||
| .hgignore | ||
| AUTHORS | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README | ||
| codereview.cfg | ||
README
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 oracle 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. To submit changes to this repository, see http://golang.org/doc/contribute.html.