]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: fix type assert in dict pass
authorWayne Zuo <wdvxdr@golangcn.org>
Sun, 10 Jul 2022 03:11:05 +0000 (11:11 +0800)
committerHeschi Kreinick <heschi@google.com>
Wed, 13 Jul 2022 16:06:45 +0000 (16:06 +0000)
commit923740a8cc82e0bd3cd6098f94130b1967c4b361
tree33d4d356182014f460fd129f591886d5e05661df
parentbf2ef26be3593d24487311576d85ec601185fbf4
cmd/compile: fix type assert in dict pass

For type assertions, if src type is empty interface, we should
use normal type assertions rather than dynamic type assertions.

Fixes #53762

Change-Id: I596b2e4ad647fe5e42ad884f7273c78f8f50dac2
Reviewed-on: https://go-review.googlesource.com/c/go/+/416736
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/issue53762.go [new file with mode: 0644]