From: Russ Cox Date: Thu, 25 Jun 2009 23:25:06 +0000 (-0700) Subject: package main X-Git-Tag: weekly.2009-11-06~1327 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4bce6d455f230db670bee0c5126d71dffe119d0f;p=gostls13.git package main func foo(y) { } was: x.go:2: NONAME-y G0 u(1) a(1) l(77) x(-1000000000) is not a type now: x.go:2: y is not a type R=ken OCL=30764 CL=30764 --- diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index bf7d92fed6..471319d0d9 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -1299,7 +1299,7 @@ xanondcl(Node *nt, int dddok) t = nt->type; if(nt->op != OTYPE) { - yyerror("%N is not a type", nt); + yyerror("%S is not a type", nt->sym); t = types[TINT32]; } n = nod(ODCLFIELD, N, N);