]> Cypherpunks repositories - gostls13.git/commitdiff
redeclaring methods
authorKen Thompson <ken@golang.org>
Tue, 16 Sep 2008 02:07:23 +0000 (19:07 -0700)
committerKen Thompson <ken@golang.org>
Tue, 16 Sep 2008 02:07:23 +0000 (19:07 -0700)
R=r
OCL=15375
CL=15375

src/cmd/gc/dcl.c

index 5d2bfacb4a057c3208db64bb2d8b007e0c325f8f..134982ec7dbd588c1b2d2a7fce7813c6b50898d7 100644 (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)