]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] go/types, types2: allow (string...) signature with NewSignatu...
authorRobert Griesemer <gri@golang.org>
Mon, 12 Sep 2022 22:51:32 +0000 (15:51 -0700)
committerCherry Mui <cherryyz@google.com>
Wed, 21 Sep 2022 20:25:59 +0000 (20:25 +0000)
commite40a130cc02cca954ff8e33aa9f5950ecab99e3b
tree678954316c813c3921b654e854034d208bfd322a
parente0a364b061060aa0e0ed14df5cdce284e878d605
[release-branch.go1.18] go/types, types2: allow (string...) signature with NewSignatureType

Includes cases where the core type of the variadic parameter is
a slice or bytestring. Permits a client to create the signature
for various instantiations of append.

Fixes #55148.

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