From ac96d8254b7d29649cff185b7ec2f087c85781d2 Mon Sep 17 00:00:00 2001 From: James Hilton-Balfe Date: Fri, 22 Apr 2022 11:04:40 +0100 Subject: [PATCH] Add a minimal repro for #312 (#340) --- tests/inputs/nested/nested.json | 3 ++- tests/inputs/nested/nested.proto | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/inputs/nested/nested.json b/tests/inputs/nested/nested.json index f34f1d7..f460cad 100644 --- a/tests/inputs/nested/nested.json +++ b/tests/inputs/nested/nested.json @@ -2,5 +2,6 @@ "nested": { "count": 150 }, - "sibling": {} + "sibling": {}, + "msg": "THIS" } diff --git a/tests/inputs/nested/nested.proto b/tests/inputs/nested/nested.proto index 043cee0..619c721 100644 --- a/tests/inputs/nested/nested.proto +++ b/tests/inputs/nested/nested.proto @@ -6,13 +6,19 @@ package nested; message Test { // This is the nested type. message Nested { - // Stores a simple counter. - int32 count = 1; + // Stores a simple counter. + int32 count = 1; + } + // This is the nested enum. + enum Msg { + NONE = 0; + THIS = 1; } Nested nested = 1; Sibling sibling = 2; Sibling sibling2 = 3; + Msg msg = 4; } message Sibling {