]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: allow exporting `.rcvr` ident
authorWayne Zuo <wdvxdr@golangcn.org>
Thu, 5 May 2022 13:46:51 +0000 (21:46 +0800)
committerAlex Rakoczy <alex@golang.org>
Wed, 25 May 2022 19:31:01 +0000 (19:31 +0000)
commite46ac3837026bef0feec2d83dbf07a19c1aad29d
tree563be684a1f0d6b9ad5f8be4100f097991fb74cd
parent32dedaa69e22f1a058ae90b9484fd4c3b46fbcbf
[release-branch.go1.18] cmd/compile: allow exporting `.rcvr` ident

Noder pass will build a closure to implement generic function
instantiation which may produce `.dict` and `.rcvr` ident.
Since we allow `.dict` during exporting, we should allow `.rcvr` too.

Fixes #52242.

Change-Id: Ifc3912ba5155b5ac1887f20830da64f4fb3fceb6
Reviewed-on: https://go-review.googlesource.com/c/go/+/404314
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
(cherry picked from commit ac39dbdf58e50a2575b891675e7d2e1400b20cfe)
Reviewed-on: https://go-review.googlesource.com/c/go/+/404774
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/typecheck/iexport.go
test/typeparam/issue52241.go [new file with mode: 0644]