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 ced9ac9 commit 4d7cab8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions protobuf-test/src/common/v2/test_map_simple_pb.proto
@@ -1,10 +1,20 @@
syntax = "proto2";

package test_map_simple;


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 4d7cab8

Please sign in to comment.