]> Cypherpunks repositories - gostls13.git/commit
go/types: comp literals to accept type sets with single underlying types
authorRobert Findley <rfindley@google.com>
Fri, 29 Oct 2021 22:08:08 +0000 (18:08 -0400)
committerRobert Findley <rfindley@google.com>
Fri, 29 Oct 2021 22:29:31 +0000 (22:29 +0000)
commitc812b97ec67ae2d674b5bb4e2fd29c7ab7fa08dc
tree6517c096c72252b111a64bb80d128c4cb6bc9a58
parent71e6ab8f958bf346f9e0b46c4a35310615360215
go/types: comp literals to accept type sets with single underlying types

This is a clean port of CL 357915 to go/types.

Change-Id: Idf5850a8bdcf3596c561c97bcd60539945139743
Reviewed-on: https://go-review.googlesource.com/c/go/+/359877
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/expr.go
src/go/types/testdata/check/compliterals.go2 [new file with mode: 0644]