]> Cypherpunks repositories - gostls13.git/commit
generate an error if the foreward
authorKen Thompson <ken@golang.org>
Thu, 3 Apr 2008 03:23:01 +0000 (20:23 -0700)
committerKen Thompson <ken@golang.org>
Thu, 3 Apr 2008 03:23:01 +0000 (20:23 -0700)
commit5d6eba80f8df74df46dd68e58ae1ce9097d7f20a
tree50ae9b9605fa1343187128b4b3ff4905db40d312
parent87278c26e2bef550800bf7518f50996f202bfa33
generate an error if the foreward
declaration of a func does not exactly
match the actual (or another foreward)
declaration. the reason is that when
there are 2 declarations of a function,
the names of the parameters are taken
from the first. thus
   func x(a int);
followed by
   func x(b int) { ... }
will have the parameter named "a" and
"b" will be undefined.

SVN=114788
src/c/dcl.c
src/c/gen.c
src/c/go.h
src/c/go.y
src/c/subr.c
src/c/walk.c