mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 18:18:40 +00:00
Default-empty vectors of enums (#6505)
* disable clippy * Vector of enum default * swift and tests * git clang format * Rewrite enum parser checks * Remove Voids from more_defaults * vector enum swift * remove vector accessor from swift * clang format Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
|
||||
enum ABC: int { A, B, C }
|
||||
|
||||
|
||||
table MoreDefaults {
|
||||
ints: [int] = [];
|
||||
floats: [float] = [ ];
|
||||
empty_string: string = "";
|
||||
some_string: string = "some";
|
||||
abcs: [ABC] = [];
|
||||
bools: [bool] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user