| commit | 66669bb6cae475eda6666a94f6ff4f616ffa77d7 | [log] [tgz] |
|---|---|---|
| author | Ian Lance Taylor <iant@golang.org> | Thu Nov 26 13:15:41 2020 -0800 |
| committer | Ian Lance Taylor <iant@golang.org> | Sat Nov 28 14:55:30 2020 +0000 |
| tree | b7748eaadf36f5deae8404f7519e6349cf88506e | |
| parent | 8cbe18aff99dbf79bd1adb9c025418e84505ffd5 [diff] |
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 :=
Change-Id: I4b69a96950a6077145822ef625fb2117424897f3
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273546
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>