Add a minimal repro for #312 (#340)

This commit is contained in:
James Hilton-Balfe 2022-04-22 11:04:40 +01:00 committed by GitHub
parent e7133adeb3
commit ac96d8254b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -2,5 +2,6 @@
"nested": { "nested": {
"count": 150 "count": 150
}, },
"sibling": {} "sibling": {},
"msg": "THIS"
} }

View File

@ -6,13 +6,19 @@ package nested;
message Test { message Test {
// This is the nested type. // This is the nested type.
message Nested { message Nested {
// Stores a simple counter. // Stores a simple counter.
int32 count = 1; int32 count = 1;
}
// This is the nested enum.
enum Msg {
NONE = 0;
THIS = 1;
} }
Nested nested = 1; Nested nested = 1;
Sibling sibling = 2; Sibling sibling = 2;
Sibling sibling2 = 3; Sibling sibling2 = 3;
Msg msg = 4;
} }
message Sibling { message Sibling {