]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: handle anonymous pointer fields
authorGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 17 May 2012 02:21:31 +0000 (23:21 -0300)
committerGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 17 May 2012 02:21:31 +0000 (23:21 -0300)
commit9242a90ab597a12c3adb7e13fd151498bce4f9ab
treeef3769eb234c980443b558648bfc6a01581be468
parent283a3ddab8f93ef3a54139541e354c8673bee83c
encoding/xml: handle anonymous pointer fields

This CL makes

    type T struct { *U }

behave in a similar way to:

    type T struct { U }

Fixes #3108.

R=golang-dev, rsc, gustavo
CC=golang-dev
https://golang.org/cl/5694044
src/pkg/encoding/xml/marshal.go
src/pkg/encoding/xml/marshal_test.go
src/pkg/encoding/xml/read.go
src/pkg/encoding/xml/typeinfo.go