mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 11:31:11 +00:00
update proto tests with alaised enum (#7121)
This commit is contained in:
@@ -10,6 +10,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;
|
||||
|
||||
table ImportedMessage {
|
||||
a:int;
|
||||
}
|
||||
@@ -39,6 +50,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_;
|
||||
@@ -47,6 +59,7 @@ table OtherMessage {
|
||||
a:double;
|
||||
/// doc comment for b.
|
||||
b:float = 3.14149;
|
||||
foo_bar_baz:proto.test.ProtoMessage_.OtherMessage_.ProtoEnum;
|
||||
}
|
||||
|
||||
table Anonymous0 {
|
||||
|
||||
Reference in New Issue
Block a user