Skip to content

Error: no size because of forward reference with self referenced messages #135

@timotheecour

Description

@timotheecour
enum def2=`
message Node {
  Node node1 = 1;
  Node node2 = 2;
}
`;

mixin ProtocolBufferFromString!(def2);

void test2(){
  Node node;
  node.node1=Node();
  node.node1.node2=Node();

  import std.stdio;
  writeln(node);
}

Error: struct tims.tests.d37_proto.test.ProtocolBufferFromString!"\x0amessage Node {\x0a Node node1 = 1;\x0a Node node2 = 2;\x0a}\x0a".Node no size because of forward reference

note: this is valid proto, see C++ example here: PMunch/protobuf-nim#8 (comment)

D20180503T155619

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions