mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 21:10:00 +00:00
Started implementation for private flags in rust (#7269)
Adds flag to the cpp to fix bad annotations in all the languages Addresses comments to the PR, and fixes logic for leaking annotations
This commit is contained in:
18
tests/private_annotation_test.fbs
Normal file
18
tests/private_annotation_test.fbs
Normal file
@@ -0,0 +1,18 @@
|
||||
enum AB:byte (private) {
|
||||
A,
|
||||
B,
|
||||
}
|
||||
|
||||
struct Object (private) {
|
||||
value: int;
|
||||
}
|
||||
|
||||
union Any (private) { Game, Annotations }
|
||||
|
||||
table Game (private) {
|
||||
value: int;
|
||||
}
|
||||
|
||||
table Annotations (private) {
|
||||
value: int;
|
||||
}
|
||||
Reference in New Issue
Block a user