diff options
author | Keith Randall <khr@golang.org> | 2021-08-18 09:38:19 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2021-08-19 15:09:47 +0000 |
commit | 9871726c72af7009aa73be33edfa06a8d9e5965e (patch) | |
tree | d552490050018a151eef90a76bfe2f0ed3c254ae /src/cmd/compile/internal/reflectdata/reflect.go | |
parent | 69d8fbec7ab74b3b0f8b689a9a251bdf621936aa (diff) | |
download | go-9871726c72af7009aa73be33edfa06a8d9e5965e.tar.gz go-9871726c72af7009aa73be33edfa06a8d9e5965e.zip |
reflect: add test for invalid conversion
Conversion between slices with different element types is not allowed.
Previously (1.8 <= goversion <= 1.16), this conversion was allowed
if the base types were from different packages and had identical names.
Update #47785
Change-Id: I359de5b6fe3ff35bdbf9ab5a13902a0f820cac66
Reviewed-on: https://go-review.googlesource.com/c/go/+/343329
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/reflectdata/reflect.go')
0 files changed, 0 insertions, 0 deletions