import dproto.dproto;
mixin ProtocolBufferFromString!"
message A {
repeated int32 x = 2;
repeated int32 y = 2;
//repeated int32 x_packed = 3 [ packed = true ];
}
";
void test3(){
A a;
a.x = [1,2,3];
ubyte[] serializedObject = a.serialize();
A a2 = A(serializedObject); // will crash at runtime here: Attempting to fetch the front of an empty array of ubyte
}
@msoucy