]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: use dictionary to convert type to shaped interfa...
authorKeith Randall <khr@golang.org>
Tue, 19 Apr 2022 13:24:33 +0000 (21:24 +0800)
committerHeschi Kreinick <heschi@google.com>
Mon, 9 May 2022 20:11:53 +0000 (20:11 +0000)
commit500d75a5557c156808ad7afb78c0fa7c85b5832d
tree38f9d526ad7e4be2e095b78a5090ab8c725903af
parent66432dadb109c1b9d3e4b9309538c236d7085de6
[release-branch.go1.18] 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 #52691.

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>
Reviewed-on: https://go-review.googlesource.com/c/go/+/403934
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/issue52026.go [new file with mode: 0644]