]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: handle dictionaries for top-level instantiations
authorKeith Randall <khr@golang.org>
Thu, 3 Jun 2021 22:39:23 +0000 (15:39 -0700)
committerKeith Randall <khr@golang.org>
Fri, 4 Jun 2021 18:11:39 +0000 (18:11 +0000)
commitbad388744b57cb49f364971e21d6a2300545f0fb
tree362c309f0c0cbd881029f839b6be9b0e88be050b
parentde614651561c6d5bfe1e68bddaf0dedab9a0ecb0
[dev.typeparams] cmd/compile: handle dictionaries for top-level instantiations

There's no outer function in these cases, so we won't be reading
the dictionary as a subdictionary from the outer scope's dictionary.
It will always be a compile-time constant.

Change-Id: I754b126652a6ffb62255734d53fcec29d77cfa9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/324949
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/dictionaryCapture.go