mirror of
https://github.com/golang/go
synced 2024-11-22 01:44:40 -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);
|
typechecklist(n->ninit, Etop);
|
||||||
typecheck(&n->ntest, Erv);
|
typecheck(&n->ntest, Erv);
|
||||||
if(n->ntest != N && (t = n->ntest->type) != T && t->etype != TBOOL)
|
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);
|
typecheck(&n->nincr, Etop);
|
||||||
typechecklist(n->nbody, Etop);
|
typechecklist(n->nbody, Etop);
|
||||||
goto ret;
|
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.
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
Loading…
Reference in New Issue
Block a user