]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: fix wrong dict param when getting dict type
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 12 Mar 2022 17:04:46 +0000 (00:04 +0700)
committerCherry Mui <cherryyz@google.com>
Mon, 4 Apr 2022 18:05:18 +0000 (18:05 +0000)
commit39a8c8cf2e83de7e81d03ff1b1423411ed616cab
tree780c9d0a34f5d44191368e2f5bf505b8c0753264
parent9d738480d2e56dc88dc2f53fb6220eb8a63964c6
[release-branch.go1.18] cmd/compile: fix wrong dict param when getting dict type

CL 338129 added getDictionaryType to get the dictionary type from the
specified dict param, but still using the one in info.dictParam, which
is wrong.

Fixes #51669

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