]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] Get dictionaryCapture.go working.
authorDan Scales <danscales@google.com>
Sun, 18 Jul 2021 18:09:12 +0000 (11:09 -0700)
committerDan Scales <danscales@google.com>
Thu, 22 Jul 2021 04:44:48 +0000 (04:44 +0000)
commitee20dff27debb738ca3a89a7a30113771c1c078f
tree21621ff4bc8092fca9632c5d09be5e36e2738c7a
parent4e6836e82c981af7c041474f139b3de03906c3b0
[dev.typeparams] Get dictionaryCapture.go working.

METHVALUE in a generic function (that is not called) was not causing
buildClosure() to be called and therefore not using dictionaries. Also,
had to add an extra check to make sure that if we have a FUNCINST
node above a METHVALUE, we only call buildClosure once.

Change-Id: I49756152fc343e5ac1c449e697960fc2a0f482ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/336429
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/run.go