Skip to content

enum in a nested message doesn't appear to get set #16

Description

@joeshaw

If I have a definition like so:

enum Status {
    IN_PROGRESS = 1;
    ERROR = 2;
}

message Foo {
    message Bar {
        optional Status status = 1;
    }

    optional Bar bar = 1;
}

And code like so:

foo = Foo()
foo.bar = Foo_Bar()
foo.bar.status = Status.IN_PROGRESS
print foo.bar.status

None is printed instead of 1. Things work ok if I move the status field from the inner Bar message to the outer Foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions