From aba3b944e7aa3de7f76d449c6cdec249e8b7dae6 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 25 Jun 2009 16:25:06 -0700 Subject: 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(-) (limited to 'src') diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index bf7d92fed..471319d0d 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); -- cgit v1.2.3