update proto tests with alaised enum (#7121)

This commit is contained in:
Derek Bailey
2022-02-22 01:03:46 -06:00
committed by GitHub
parent 30c4bf47f9
commit 8a9303d464
7 changed files with 83 additions and 0 deletions

View File

@@ -12,6 +12,17 @@ enum ProtoEnum : int {
BAR = 5,
}
namespace proto.test.ProtoMessage_.OtherMessage_;
enum ProtoEnum : int {
NUL = 0,
FOO = 1,
BAR = 2,
BAZ = 3,
}
namespace proto.test;
/// 2nd table doc comment with
/// many lines.
table ProtoMessage {
@@ -37,6 +48,7 @@ table ProtoMessage {
z:proto.test.ImportedMessage;
/// doc comment for r.
r:proto.test.ProtoMessage_.Anonymous0;
outer_enum:proto.test.ProtoEnum;
}
namespace proto.test.ProtoMessage_;
@@ -45,6 +57,7 @@ table OtherMessage {
a:double;
/// doc comment for b.
b:float = 3.14149;
foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
}
table Anonymous0 {