]> Cypherpunks repositories - gostls13.git/commit
go/types: allow slicing for operands with []byte|string type sets
authorRobert Findley <rfindley@google.com>
Thu, 18 Nov 2021 00:26:37 +0000 (19:26 -0500)
committerRobert Findley <rfindley@google.com>
Thu, 18 Nov 2021 02:17:23 +0000 (02:17 +0000)
commitce7e5013a68ef4572b9fa439b1402145ef710631
tree21f9f0f6eda271f7b8cde39a4cfe0eeb4a643d32
parent353cb71ea29e02a41f77b7576d658de4515e264d
go/types: allow slicing for operands with []byte|string type sets

This is a port of CL 363662 from types2 to go/types. An error message
was adjusted to be on the operand in test data.

Change-Id: I4d2d69976f4f05e0d89ba1c6bf8b3e4cf1a82316
Reviewed-on: https://go-review.googlesource.com/c/go/+/364899
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/builtins.go
src/go/types/index.go
src/go/types/testdata/check/typeparams.go2
src/go/types/type.go