Using a list with a typedefed value in a struct does not generate compilable
Here is a small example definition which generates uncompilable code on at
least 0.9.2 and git master (as of the reporting of this issue).
I've extracted some of the relevant snippets of code from the generated Go
The issue is that the code is trying to append the typedefed type to a list of
the underlying type. I.e. appending X to a list of int64.
Smallest code change to make the generated code work is to cast _elem0 to
int64 in the append operation. However it might be better to actually
have p.Xs be of type X rather than int64.
(Currently I'm manually patching my generated Go code with type casts before appending to these lists.)