mirror of https://github.com/golang/go.git
There was a bug and inconsistency in how const identifiers were categorized when being used. The new code always makes them readonly variables. The predeclared identifiers (true, false, nil, iota) were treated inconsistently. The new code makes them all readonly variables. Under rare conditions the output from gopls semtok was not syntactic Go code because is would put a /* comment immediately after an operator /, thereby generating a spurious line comment. Fixes golang/go#42715 Change-Id: I5b1ccfaf607d6baa58c132e460c5617db6634a72 Reviewed-on: https://go-review.googlesource.com/c/tools/+/272208 Trust: Peter Weinberger <pjw@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| a.go | ||
| a.go.golden | ||
| b.go | ||
| b.go.golden | ||
| semantic_test.go | ||