mirror of https://github.com/golang/go.git
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:
parent
30f2799f88
commit
4bce6d455f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue