]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: ensure we replace package placeholder in type names
authorKeith Randall <khr@golang.org>
Fri, 12 Nov 2021 20:38:29 +0000 (12:38 -0800)
committerKeith Randall <khr@golang.org>
Sun, 14 Nov 2021 17:38:42 +0000 (17:38 +0000)
commit5337e53dfa3f5fde73b8f505ec3a91c628e8f648
treeffe474b92238145243ca2b280a483300f53312d5
parentdfa62c79de4f6f6ee2eb8cde340c21afc739c38d
cmd/compile: ensure we replace package placeholder in type names

We want package names exposed by reflect to be things like
main.F[main.foo], not main.F["".foo].

Fixes #49547

Change-Id: I182411a75d56ce1f64fde847e5b9ee74ce44e00b
Reviewed-on: https://go-review.googlesource.com/c/go/+/363656
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/types/fmt.go
test/typeparam/issue49547.go [new file with mode: 0644]
test/typeparam/nested.out