]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.19] 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:26:19 +0000 (20:26 +0000)
commita366ed5982d674d7e468ccc5f8b6c5b8a402a00a
tree51c5c2ef6f533a7671df223e17fa9a39ed2dc609
parent4b0e03da0e0c096b8e695d9e564a8ceac99f2d76
[release-branch.go1.19] 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 #55149.

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/+/431935
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