Skip to content

Commit

Permalink
Explicitly test map with enum value
Browse files Browse the repository at this point in the history
See issue #376
  • Loading branch information
stepancheg committed Jan 29, 2019
1 parent aa54d71 commit 994b78b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions protobuf-test/src/common/v2/test_map_simple_pb.proto
@@ -1,14 +1,23 @@
syntax = "proto2";

package test_map_simple;

import "rustproto.proto";
option (rustproto.generate_accessors_all) = true;


message TestMap {
map<string, int32> m = 1;
map<string, TestMapEntry> mm = 2;
// just check it compiles
map<fixed64, TestMapEnum> me = 3;
}

message TestMapEntry {
optional int64 v = 1;
}

enum TestMapEnum {
UNKNOWN = 0;
ONE = 1;
}

0 comments on commit 994b78b

Please sign in to comment.