[dev.typeparams] cmd/compile: fix wrapper generation for imported generics
[dev.typeparams] cmd/compile: fix wrapper generation for imported generics

This CL fixes reflectdata.methodWrapper to compile wrapper functions
for method expressions involving imported, instantiated interface
types. CL 322193 fixed a similar issue for generating wrappers for
imported, instantiated concrete types, but missed this case.

This is necessary to fix CL 326169's test case 10. However, that test
case is not included currently, because -G=3 mode crashes on method
expressions involving *any* instantiated interface type. Adding a test
will have to wait until either this issue is fixed in -G=3 mode, or
unified IR is merged.

Updates #46704.

Change-Id: Ib02d3c20e7c69d16288f1286cd1c98e7cbbba114
Reviewed-on: https://go-review.googlesource.com/c/go/+/327055
Run-TryBot: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>
Reviewed-by: Dan Scales <7338a4f274e3bf1354488b9d1f344f4c9a69a8fb@google.com>
Trust: Dan Scales <7338a4f274e3bf1354488b9d1f344f4c9a69a8fb@google.com>
Trust: Matthew Dempsky <e56ac2c500064424afac424d4b5e53bd0570a731@google.com>
TryBot-Result: Go Bot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>

cloudflare/go,golang/go,golang/go,nawawi/go,CAFxX/go,nawawi/go,golang/go,CAFxX/go,CAFxX/go,nawawi/go,cloudflare/go,CAFxX/go,nawawi/go,CAFxX/go,cloudflare/go,cloudflare/go,nawawi/go,cloudflare/go,cloudflare/go,nawawi/go,golang/go,golang/go,CAFxX/go,golang/go,CAFxX/go,golang/go,nawawi/go,nawawi/go,cloudflare/go,CAFxX/go,cloudflare/go,golang/go