1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:54:43 -07:00

cmd/gc: remove outdated warning from pre-go1.

People are probably not making this mistake anymore.

Fixes #9164

Change-Id: I86b440ed63d09b4ca676bba7034838860f1a5d8b
Reviewed-on: https://go-review.googlesource.com/1782
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Daniel Morsing 2014-12-18 09:36:07 +01:00
parent 1ba13a5ae8
commit e0e1cee8e9

View File

@ -2959,14 +2959,6 @@ typecheckas2(Node *n)
l = n->list->n; l = n->list->n;
r = n->rlist->n; r = n->rlist->n;
// m[i] = x, ok
if(cl == 1 && cr == 2 && l->op == OINDEXMAP) {
if(l->type == T)
goto out;
yyerror("assignment count mismatch: %d = %d (use delete)", cl, cr);
goto out;
}
// x,y,z = f() // x,y,z = f()
if(cr == 1) { if(cr == 1) {
if(r->type == T) if(r->type == T)