]> Cypherpunks repositories - gostls13.git/commit
fix up arg list parsing to handle any names:
authorRuss Cox <rsc@golang.org>
Tue, 30 Sep 2008 19:53:11 +0000 (12:53 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 30 Sep 2008 19:53:11 +0000 (12:53 -0700)
commit4d571c90931e87009bbcfb002dbf09b76032dce6
tree87231a6a671f6b1b4af57ec8ade8a5d3591db55e
parentfa2b4cbf4426556f36e0842a0d711ede6d30a913
fix up arg list parsing to handle any names:

type t1 int;
type t2 int;
type t3 int;
func f1(t1, t2, t3);
func f2(t1, t2, t3 bool);
func f3(t1, t2, x t3);
func f4(*t2, x t3); // error: cannot mix
func f5(t1, *t3);
func (x *t1) f6(y *[]t2) (t1, *t3);
func f7() (int, *string);
func f8(t1, *t2, x t3); // error: cannot mix
func f9() (x int, *string);
func f10(*t2, t3);

R=ken
OCL=16202
CL=16210
src/cmd/gc/dcl.c
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/subr.c