compiler: better error for x, x := 1, 2
authorIan Lance Taylor <iant@golang.org>
Thu, 26 Nov 2020 21:15:41 +0000 (13:15 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 28 Nov 2020 14:57:06 +0000 (06:57 -0800)
commit822ea13e499db20af2080b48fc3bb530e429bb8d
tree27de8915521c00ca7e6e1c48f251c505bad4d653
parentc04bd12b06a21ad4a9c432c109ec2a543725ad1b
compiler: better error for x, x := 1, 2

Was
    assign.go:59:28: error: multiple assignments to x
Now
    assign.go:59:28: error: ‘x’ repeated on left side of :=

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273546
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc