]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: ensure generic function is loaded when it needs to be re-exported
authorDan Scales <danscales@google.com>
Fri, 19 Nov 2021 20:13:04 +0000 (12:13 -0800)
committerDan Scales <danscales@google.com>
Sat, 20 Nov 2021 01:00:16 +0000 (01:00 +0000)
commitbe18cd51dec6ac460949e96231dd05becc2cbcf7
tree2875aaca75bf540e6ffcd81f33a71ee3de174b8b
parentd2f4c935f2e247dd9949094c8a4f3ab8df2ba3a0
cmd/compile: ensure generic function is loaded when it needs to be re-exported

In the case where we need to re-export a generic function/method from
another package in the export data of the current package, make sure it
is loaded before trying to write it out.

Fixed #49667

Change-Id: I177754bb762689f34cf5c8ad246d43f1cdbbf195
Reviewed-on: https://go-review.googlesource.com/c/go/+/365837
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/typecheck/iexport.go
test/typeparam/issue49667.dir/a.go [new file with mode: 0644]
test/typeparam/issue49667.dir/b.go [new file with mode: 0644]
test/typeparam/issue49667.dir/main.go [new file with mode: 0644]
test/typeparam/issue49667.go [new file with mode: 0644]