From 4bce6d455f230db670bee0c5126d71dffe119d0f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 25 Jun 2009 16:25:06 -0700 Subject: [PATCH] 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 --- src/cmd/gc/dcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.48.1