]> Cypherpunks repositories - gostls13.git/commit
go/types: range clause to accept type sets with single underlying types
authorRobert Findley <rfindley@google.com>
Fri, 29 Oct 2021 22:01:09 +0000 (18:01 -0400)
committerRobert Findley <rfindley@google.com>
Fri, 29 Oct 2021 22:27:40 +0000 (22:27 +0000)
commit02bd226b8abb713061fcef4e53ffebc57770466b
tree470057975dc087c67ae2d18c1e63812cfc3e5536
parent3571ab58b8069fd945427ba49c4d8a702325bdb0
go/types: range clause to accept type sets with single underlying types

This is a port of CL 357778 to go/types, adjusted to include error codes
and to use the different range statement syntax in go/ast.

Change-Id: Id537c195cd33a8b422a366269ca8730c2a5bccf1
Reviewed-on: https://go-review.googlesource.com/c/go/+/359875
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/stmt.go
src/go/types/testdata/check/typeparams.go2