]> Cypherpunks repositories - gostls13.git/commit
reflect bug: NewZeroValue was refusing to create slices.
authorRuss Cox <rsc@golang.org>
Wed, 20 May 2009 22:42:14 +0000 (15:42 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 20 May 2009 22:42:14 +0000 (15:42 -0700)
commit2d5d4a1b41743ce84a8cc08562d36d27a0a42e19
tree401aa5f2a801ba710cd53366f68b9cee8cf8e257
parenta39bae095ae836102c96cbfa0adc2745c6fbbbf6
reflect bug: NewZeroValue was refusing to create slices.
as far as I can tell there's no reason not to.

the Nillable test was succeeding because NewZeroValue
returned the nil interface value and the type guard
was letting it through.  the only change in the test is
more detail in the print.

R=r
DELTA=8  (0 added, 7 deleted, 1 changed)
OCL=29124
CL=29126
src/lib/reflect/all_test.go
src/lib/reflect/value.go