]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: fix missing dict pass for type assertions
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 10 Jun 2022 18:33:11 +0000 (01:33 +0700)
committerHeschi Kreinick <heschi@google.com>
Wed, 6 Jul 2022 19:31:41 +0000 (19:31 +0000)
commit460a93b54af4a0305f6007e44e41e6160a6469d8
treef45e3b0e5d6564caaa6b65e0c9848bda11ca9315
parent3da88c0bdc94f8cacc5cef3026a7e256109e616d
[release-branch.go1.18] cmd/compile: fix missing dict pass for type assertions

For type assertions, if either src or dst type has shape, we must
convert them to dynamic type assertions.

Fixes #53357

Change-Id: Ia3362fa67c011febcbdb5b26f856d081b5c366de
Reviewed-on: https://go-review.googlesource.com/c/go/+/411617
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/411934
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/issue53309.go [new file with mode: 0644]