sync stdlib from honey

This commit is contained in:
2026-07-22 00:53:18 +02:00
parent 9c6215776e
commit 09571ffeb9
10 changed files with 279 additions and 23 deletions
+3 -3
View File
@@ -44,9 +44,9 @@ TypeInfo :: union(enum) {
EnumFieldStruct func($E, $Field type, $default ?Field) type {
match typeinfo!(E) {
.enum |info|: {
names [info.fields.len]mut []u8 = undefined
field_types [info.fields.len]mut type = undefined
defaults [info.fields.len]mut ?Field = undefined
names [info.fields.len]mut []u8 = undefined
field_types [info.fields.len]mut type = undefined
defaults [info.fields.len]mut ?Field = undefined
expand for info.fields |field, index| {
names[index] = field.name
field_types[index] = Field