]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix the names of methods created during type substitution
authorDan Scales <danscales@google.com>
Sat, 8 Jan 2022 18:33:35 +0000 (10:33 -0800)
committerDan Scales <danscales@google.com>
Tue, 11 Jan 2022 22:50:23 +0000 (22:50 +0000)
commit1ee70da3125cb6339c1bcb0c127cd97a9e1dbe90
tree68477aaf042b7eb9f693c3474dc88c33a7cd2e86
parent13c912d19252b9225fa96b9a5557575bbaffb570
cmd/compile: fix the names of methods created during type substitution

The names given to methods of types created during type substitution
were possible incorrect when the type parameters themselves were nested
types.

Fixes #50485

Change-Id: I7e0043ed22c26406a5f9d8d51d9e928770a678f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/377494
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/issue50485.dir/a.go [new file with mode: 0644]
test/typeparam/issue50485.dir/main.go [new file with mode: 0644]
test/typeparam/issue50485.go [new file with mode: 0644]