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:
parent
5d5e9f74cb
commit
721cb9c6a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user