Works around json parser bug

This commit is contained in:
Mason Remaley 2025-03-09 13:39:56 -07:00
parent 19dc741e3f
commit 7cd8f4c8c4

View file

@ -134,7 +134,9 @@ const Header = struct {
const Description = struct { const Description = struct {
kind: enum { Type, Function, Array, Pointer, Builtin, User }, kind: enum { Type, Function, Array, Pointer, Builtin, User },
storage_classes: []const enum { @"const" } = &.{}, // We explicitly set the enum size to u8 as a workaround for
// https://github.com/ziglang/zig/issues/23168
storage_classes: []const enum(u8) { @"const" } = &.{},
inner_type: ?*Description = null, inner_type: ?*Description = null,
bounds: ?[]const u8 = null, // Literal or variable bounds: ?[]const u8 = null, // Literal or variable
builtin_type: ?Builtin = null, builtin_type: ?Builtin = null,