]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: respect commaerr in Checker.exprList
authorRobert Griesemer <gri@golang.org>
Tue, 21 Mar 2023 20:59:24 +0000 (13:59 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 21 Mar 2023 21:25:48 +0000 (21:25 +0000)
commit8e19d2bbaf787600b9ee26949dbb719bf719d583
tree8eca0fc1839b780d8730ad55ae08bcd7425e2dad
parent8fce59eab5cb2facfafca89e047b4b43ba44785f
cmd/compile/internal/types2: respect commaerr in Checker.exprList

The changes to exprList (in call.go), made in CL 282193, didn't
get faithfully ported to types2: in the case of operand mode
commaerr, unpacking didn't correctly set the type of the 2nd
value to error. This shouldn't matter for the compiler, but
the code differs from the go/types version. Make them the same.

Change-Id: I6f69575f9ad4f43169b851dffeed85c19588a261
Reviewed-on: https://go-review.googlesource.com/c/go/+/478255
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/call.go