mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
* arrays of enums with no value for 0 now throw errors * move setting key field outside struct check * set to default instead of required * unsure of why these bfbs files have changed at this time, checking them in to run the pipelines. * remove known bad test
14 lines
253 B
Plaintext
14 lines
253 B
Plaintext
enum NonZero: ubyte {
|
|
VAL = 1,
|
|
}
|
|
|
|
// this now is not allowed because arrays of enums must have a zero value
|
|
// struct NonZeroArrayStruct {
|
|
// data: [NonZero:4];
|
|
// }
|
|
|
|
table NonZeroVectorTable {
|
|
values: [NonZero];
|
|
value: NonZero = VAL;
|
|
}
|