]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: in append(f()), type convert appended items
authorKeith Randall <khr@google.com>
Tue, 16 Oct 2018 21:31:49 +0000 (14:31 -0700)
committerKeith Randall <khr@golang.org>
Mon, 22 Oct 2018 17:30:57 +0000 (17:30 +0000)
commitdca769dca9bac81a242cb52654b3fe6b7819f759
treeb436a0b4daaf0ae142e3af76438bd3d653499df8
parent86ce1cb060446bcee2454080c7f55e754dbf7f82
cmd/compile: in append(f()), type convert appended items

The second and subsequent return values from f() need to be
converted to the element type of the first return value from f()
(which must be a slice).

Fixes #22327

Change-Id: I5c0a424812c82c1b95b6d124c5626cfc4408bdb6
Reviewed-on: https://go-review.googlesource.com/c/142718
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/walk.go
test/fixedbugs/issue22327.go [new file with mode: 0644]