]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: create .dict Param in the package of the instantiated...
authorDan Scales <danscales@google.com>
Sat, 5 Jun 2021 01:17:49 +0000 (18:17 -0700)
committerDan Scales <danscales@google.com>
Mon, 7 Jun 2021 19:34:39 +0000 (19:34 +0000)
commit201d55e6376365dc5e8c2392e34fdf7ee8a4b63e
tree9e2968c64eb1c7e51604f51627634e2262d78d31
parent7c8a5be2d6f26caed84c6bae2a115872af5b1021
[dev.typeparams] cmd/compile: create .dict Param in the package of the instantiated function

The instantiated functions are created in the source package of the
generic function, so all lookups of symbols should be relative to that
package, so all symbols are consistently in the source package.

Fixes #46575

Change-Id: Iba67b2ba8014a630c5d4e032c0f2f2fbaaedce65
Reviewed-on: https://go-review.googlesource.com/c/go/+/325529
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/mutualimp.dir/a.go [new file with mode: 0644]
test/typeparam/mutualimp.dir/b.go [new file with mode: 0644]
test/typeparam/mutualimp.go [new file with mode: 0644]