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
This commit is contained in:
Russ Cox 2009-06-25 16:25:06 -07:00
parent 30f2799f88
commit 4bce6d455f
1 changed files with 1 additions and 1 deletions

View 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);