]> Cypherpunks repositories - gostls13.git/commit
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)
committerKeith Randall <khr@golang.org>
Mon, 13 Jun 2022 16:53:11 +0000 (16:53 +0000)
commit7eeec1f6e4b9359381e9aeffdb87c59308ecbb7e
treebfe1ae7dd68426bb39f477eeaed0462472837597
parentd27128b065010ac6bae8dd648f85302240417294
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 #53309

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>
src/cmd/compile/internal/noder/stencil.go
test/fixedbugs/issue53309.go [new file with mode: 0644]