]> Cypherpunks repositories - gostls13.git/commit
test: add a test for parameterized embedded field
authorDan Scales <danscales@google.com>
Fri, 15 Oct 2021 22:05:36 +0000 (15:05 -0700)
committerDan Scales <danscales@google.com>
Sat, 16 Oct 2021 16:27:40 +0000 (16:27 +0000)
commit640a49b8d45760b7c965fc1529dffc8e000cc846
tree44d27699803e605b04442681392539e0cc5af3cf
parent680caf15355057ca84857a2a291b6f5c44e73329
test: add a test for parameterized embedded field

Make sure that an embedded field like "MyStruct[T]" works and can be
referenced via the name MyStruct.

Change-Id: I8be1f1184dd42c4e54e4144aff2fd85e30af722f
Reviewed-on: https://go-review.googlesource.com/c/go/+/356312
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/genembed2.go [new file with mode: 0644]