1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:54:44 -07:00

redeclaring methods

R=r
OCL=15375
CL=15375
This commit is contained in:
Ken Thompson 2008-09-15 19:07:23 -07:00
parent 5d5e9f74cb
commit 721cb9c6a1

View File

@ -313,6 +313,7 @@ addmethod(Node *n, Type *t, int local)
}
if(!eqtype(t, f->type, 0))
yyerror("method redeclared: %S of type %S", sf, st);
return;
}
if(d == T)