]> Cypherpunks repositories - gostls13.git/commit
reflect: an unnamed type has no PkgPath
authorIan Lance Taylor <iant@golang.org>
Tue, 12 Jul 2016 05:34:30 +0000 (22:34 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 12 Jul 2016 12:43:48 +0000 (12:43 +0000)
commit1f4e68d92b33a668f2afa2ab5f8114c1a4bee682
treecc02e87af73227c2efa55a7d0b92b0cae38a7cc4
parenta84b18ac865257c50d8812e39d244b57809fc8c8
reflect: an unnamed type has no PkgPath

The reflect package was returning a non-empty PkgPath for an unnamed
type with methods, such as a type whose methods have a pointer
receiver.

Fixes #16328.

Change-Id: I733e93981ebb5c5c108ef9b03bf5494930b93cf3
Reviewed-on: https://go-review.googlesource.com/24862
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/reflect/all_test.go
src/reflect/type.go