]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: allow types with the same underlying type to have the...
authorKeith Randall <khr@golang.org>
Fri, 30 Jul 2021 16:06:38 +0000 (09:06 -0700)
committerKeith Randall <khr@golang.org>
Fri, 30 Jul 2021 21:01:32 +0000 (21:01 +0000)
commit40e561d9337afbae221b34d6d0811761f32412f6
tree52f31fff2dc334cc5eca0c09dfa6598a657a729b
parentfd0011dca5b35ec07ff53df4c3231a2a119796a9
[dev.typeparams] cmd/compile: allow types with the same underlying type to have the same shape

First baby step to sharing the underlying implementation among several types.

Change-Id: I6a156176d2b7f0131a87285a03b881ce380c26ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/338610
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/shape1.go [new file with mode: 0644]
test/typeparam/shape1.out [new file with mode: 0644]