1
0
mirror of https://github.com/golang/go synced 2024-11-26 12:58:06 -07:00
go/test/typeparam
Keith Randall f432d3fc41 cmd/compile: fix nongeneric closures in generic functions
Ensure that formal parameter Names are correctly copied and marked
with the correct Curfn. We need to ensure this even when the underlying
closure has no type parameters.

(Aside: it is strange that the types of things contain formal
parameter names that need to be copied. Maybe that's an underlying
larger problem that needs to be fixed.)

Fixes #45738

Change-Id: Ia13d69eea992ff7080bd44065115bc52eb624e73
Reviewed-on: https://go-review.googlesource.com/c/go/+/313652
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>
2021-04-27 19:30:11 +00:00
..
absdiff.go
adder.go
append.go
chans.go
combine.go
cons.go
double.go
fact.go
graph.go
importtest.go
index.go
interfacearg.go
issue45547.go
issue45722.go cmd/compile: fix handling of ir.CurFunc during stenciling 2021-04-27 16:55:20 +00:00
issue45738.go cmd/compile: fix nongeneric closures in generic functions 2021-04-27 19:30:11 +00:00
list2.go
list.go
lockable.go
map.go
maps.go
metrics.go
min.go
ordered.go
orderedmap.go
pair.go
pragma.go
sets.go
settable.go
slices.go
smallest.go
smoketest.go
stringable.go
stringer.go
struct.go
sum.go
tparam1.go
typelist.go
value.go