go/test/typeparam
Dan Scales c236095638 cmd/compile: add support for generic maps
Add support for maps in subster.typ(). Add new test cases maps.go and set.go.

Change substitution of a TFUNC in subster.typ() to always create new
param and result structs if any of the receiver, param, or result
structs get substituted. All these func structs must be copied, because
they have offset fields that are dependent, and so must have an
independent copy for each new signature (else there will be an error
later when frame offsets are calculated).

Change-Id: I576942a62f06b46b6f005abc98f65533008de8dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/301670
Trust: Dan Scales <danscales@google.com>
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-03-15 20:28:34 +00:00
..
absdiff.go
chans.go cmd/compile: add support for generic channels and type conversion during calls 2021-03-15 20:28:10 +00:00
combine.go
cons.go cmd/compile: add support for generic channels and type conversion during calls 2021-03-15 20:28:10 +00:00
fact.go
importtest.go
index.go
list.go
lockable.go cmd/compile: fix noder.Addr() to not call typechecker 2021-03-12 02:30:33 +00:00
map.go
maps.go cmd/compile: add support for generic maps 2021-03-15 20:28:34 +00:00
min.go
ordered.go
pair.go
sets.go cmd/compile: add support for generic maps 2021-03-15 20:28:34 +00:00
settable.go cmd/compile: fix handling of partially inferred type arguments 2021-03-11 00:31:14 +00:00
smallest.go
smoketest.go
stringable.go
stringer.go
struct.go
sum.go
tparam1.go
value.go