]> Cypherpunks repositories - gostls13.git/commit
go/types: allow composite literals of type parameter type
authorRobert Findley <rfindley@google.com>
Tue, 31 Aug 2021 18:03:33 +0000 (14:03 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 31 Aug 2021 20:39:39 +0000 (20:39 +0000)
commitaed59d172ad532bd2eedcf78ba97fdd113d2dccd
treeb2f2820fe21b042cc04fae5169da73600fdb6263
parent891470fbf767a09ac2b00cc58dbaf9ee2a67b09e
go/types: allow composite literals of type parameter type

This is a port of CL 342690 to go/types.

Change-Id: I27dcde237e400a84c3394a3579805014777830bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/346432
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/examples/types.go2