mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
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
This commit is contained in:
@@ -2,9 +2,10 @@ enum NonZero: ubyte {
|
||||
VAL = 1,
|
||||
}
|
||||
|
||||
struct NonZeroArrayStruct {
|
||||
data: [NonZero:4];
|
||||
}
|
||||
// this now is not allowed because arrays of enums must have a zero value
|
||||
// struct NonZeroArrayStruct {
|
||||
// data: [NonZero:4];
|
||||
// }
|
||||
|
||||
table NonZeroVectorTable {
|
||||
values: [NonZero];
|
||||
|
||||
Reference in New Issue
Block a user