Commit 4bce6d45 authored by Russ Cox's avatar Russ Cox

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
parent 30f2799f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment