]> Cypherpunks repositories - gostls13.git/commit
reflect: disallow Interface method on Value obtained via unexported name
authorRuss Cox <rsc@golang.org>
Mon, 17 Oct 2011 22:48:45 +0000 (18:48 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 17 Oct 2011 22:48:45 +0000 (18:48 -0400)
commit304cf4dc9b6c289d4e458872d83d8f409ab72c07
treeef3cafcda587c072def89b577f18734a128239de
parente5f3dc8bc54942db96f55b1b6207edfe69ca4021
reflect: disallow Interface method on Value obtained via unexported name

Had been allowing it for use by fmt, but it is too hard to lock down.
Fix other packages not to depend on it.

R=r, r
CC=golang-dev
https://golang.org/cl/5266054
src/pkg/fmt/fmt_test.go
src/pkg/fmt/print.go
src/pkg/reflect/all_test.go
src/pkg/reflect/deepequal.go
src/pkg/reflect/value.go
test/interface/fake.go