Assignments to "comma, ok" expressions on the lhs of an assignment are not permitted unless we have map index "comma, ok" expression. Created new operand mode 'mapindex' to distinguish this case. Renamed mode 'valueok' to the more commonly used 'commaok' term, which also makes it easier to distinguish from simply 'value'. Added corresponding tests. Fixes a TODO. R=adonovan CC=golang-dev https://golang.org/cl/14526049 |
||
|---|---|---|
| blog | ||
| call | ||
| cmd | ||
| dashboard | ||
| go | ||
| godoc | ||
| importer | ||
| 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 Single Static Assignment (SSA) representation for Go programs. To submit changes to this repository, see http://golang.org/doc/contribute.html.