]> Cypherpunks repositories - gostls13.git/commit
bug064
authorRuss Cox <rsc@golang.org>
Thu, 5 Feb 2009 23:22:49 +0000 (15:22 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 5 Feb 2009 23:22:49 +0000 (15:22 -0800)
commitb0009bef20badeb3716ed94c8291accc75cf769e
tree232749710138d6a0942114e9e4f9003efa1508de
parent7a3877aa0c862927354e07a6919dd327e3f9aa03
bug064

make f(g()) work when g returns multiple
args with names different than f expects.

func swap(a, b int) (c, d int) {
return b, a
}

swap(swap(1,2))

R=ken
OCL=24474
CL=24476
src/cmd/gc/go.h
src/cmd/gc/subr.c
src/cmd/gc/walk.c
test/fixedbugs/bug064.go [moved from test/bugs/bug064.go with 100% similarity]
test/golden.out