Files
flatbuffers/tests/non_zero_enum.fbs
Justin Davis c9a301e601 Arrays of Enumerations without a value for 0 are no longer valid (#8836)
* 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
2025-12-13 18:40:58 -05:00

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;
}