diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2021-11-30 16:58:36 +0700 |
|---|---|---|
| committer | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2021-12-01 10:19:34 +0000 |
| commit | 0e1d553b4d98b71799b86b0ba9bc338de29b7dfe (patch) | |
| tree | 1bc23b4fe41d6b8f4ca342bc51b3a3e624ac2ff0 /src/os/exec/exec_test.go | |
| parent | a412b5f0d803b261b8075289bf41599490f237cc (diff) | |
| download | go-0e1d553b4d98b71799b86b0ba9bc338de29b7dfe.tar.xz | |
cmd/compile: fix identical to recognize any and interface{}
Currently, identical handles any and interface{} by checking against
Types[TINTER]. This is not always true, since when two generated
interface{} types may not use the same *Type instance.
Instead, we must check whether Type is empty interface or not.
Fixes #49875
Change-Id: I28fe4fc0100041a01bb03da795cfe8232b515fc4
Reviewed-on: https://go-review.googlesource.com/c/go/+/367754
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
