]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use dictionary to convert type to shaped interface type
authorWayne Zuo <wdvxdr@golangcn.org>
Tue, 19 Apr 2022 13:24:33 +0000 (21:24 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 3 May 2022 21:36:22 +0000 (21:36 +0000)
commit64b6e44ad7e4db4525b7f05be128bc7d8713afb8
tree8f9959c08ca805fbb80f096a2550157e74f75ece
parent23f13255f0a5a3dd34ee31b64e45fa87efadcb43
cmd/compile: use dictionary to convert type to shaped interface type

When we convert a type to a shaped interface type, we are not able
to recognize the itab. So passing the itab by dictionary as the
workaround.

Fixes #52026.

Change-Id: I75c23c7dd215daf9761dc24116a8af2c28c6d948
Reviewed-on: https://go-review.googlesource.com/c/go/+/401034
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/issue52026.go [new file with mode: 0644]