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:
Justin Davis
2025-12-13 18:40:58 -05:00
committed by GitHub
parent 19b2300f93
commit c9a301e601
6 changed files with 4663 additions and 4680 deletions

View File

@@ -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];