summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-09-15 19:07:23 -0700
committerKen Thompson <ken@golang.org>2008-09-15 19:07:23 -0700
commitb0f3941771e69ea0aa784d41c7da8d9590fda41e (patch)
treee2414be5e34c196ae9b4dc925c1e8a009002cb06
parent7291524981aa0b267ef042ba4bb5bb258c01bda0 (diff)
downloadgolang-b0f3941771e69ea0aa784d41c7da8d9590fda41e.tar.gz
redeclaring methods
R=r OCL=15375 CL=15375
-rw-r--r--src/cmd/gc/dcl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c
index 5d2bfacb4..134982ec7 100644
--- a/src/cmd/gc/dcl.c
+++ b/src/cmd/gc/dcl.c
@@ -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)