]> Cypherpunks repositories - gostls13.git/commitdiff
package main
authorRuss Cox <rsc@golang.org>
Thu, 25 Jun 2009 23:25:06 +0000 (16:25 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 25 Jun 2009 23:25:06 +0000 (16:25 -0700)
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

index bf7d92fed6283100ebd5a2a51720f63010623cd4..471319d0d924d497645c26b3a05c07c1f93c43ad 100644 (file)
@@ -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);