aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2017-03-16 17:07:26 -0700
committerRobert Griesemer <gri@golang.org>2017-03-17 00:31:35 +0000
commit3c7a812485334eb57c0856e6b152aa3d50f9f0a0 (patch)
tree038bb41f672da2e334aabc65c1a887cbe0e25d53 /src
parent73a44f0456389c60db8459981868b4c64874ec0b (diff)
downloadgo-3c7a812485334eb57c0856e6b152aa3d50f9f0a0.tar.xz
cmd/compile: eliminate "assignment count mismatch" - not needed anymore
See https://go-review.googlesource.com/#/c/38313/ for background. It turns out that only a few tests checked for this. The new error message is shorter and very clear. Change-Id: I8ab4ad59fb023c8b54806339adc23aefd7dc7b07 Reviewed-on: https://go-review.googlesource.com/38314 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/gc/typecheck.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/typecheck.go b/src/cmd/compile/internal/gc/typecheck.go
index 2f67b33381..d55e76b7f1 100644
--- a/src/cmd/compile/internal/gc/typecheck.go
+++ b/src/cmd/compile/internal/gc/typecheck.go
@@ -3436,7 +3436,7 @@ func typecheckas2(n *Node) {
}
mismatch:
- yyerror("assignment count mismatch: cannot assign %d values to %d variables", cr, cl)
+ yyerror("cannot assign %d values to %d variables", cr, cl)
// second half of dance
out: