summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-06-25 16:25:06 -0700
committerRuss Cox <rsc@golang.org>2009-06-25 16:25:06 -0700
commitaba3b944e7aa3de7f76d449c6cdec249e8b7dae6 (patch)
treeda94a717e08fde408c5fe1d3389aa785d3180cb5
parent29732955ddd596a909486ae4c1a5dd20af996339 (diff)
downloadgolang-aba3b944e7aa3de7f76d449c6cdec249e8b7dae6.tar.gz
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
-rw-r--r--src/cmd/gc/dcl.c2
1 files changed, 1 insertions, 1 deletions
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);