mirror of
https://github.com/golang/go
synced 2024-11-25 03:57:56 -07:00
bug209
R=ken OCL=35546 CL=35546
This commit is contained in:
parent
a14a8b2739
commit
c736b6579f
@ -934,7 +934,7 @@ reswitch:
|
||||
typechecklist(n->ninit, Etop);
|
||||
typecheck(&n->ntest, Erv);
|
||||
if(n->ntest != N && (t = n->ntest->type) != T && t->etype != TBOOL)
|
||||
yyerror("non-bool %+N used as for condition");
|
||||
yyerror("non-bool %+N used as for condition", n->ntest);
|
||||
typecheck(&n->nincr, Etop);
|
||||
typechecklist(n->nbody, Etop);
|
||||
goto ret;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// $G $D/$F.go || echo BUG: should compile
|
||||
// errchk $G $D/$F.go
|
||||
|
||||
// Copyright 2009 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
Loading…
Reference in New Issue
Block a user