Fix pkg.Constant.field union access

This commit is contained in:
gingerBill
2026-06-29 11:06:34 +01:00
parent 138748c24a
commit feb9b6159e
2 changed files with 32 additions and 2 deletions

View File

@@ -32,6 +32,22 @@ enum ExactValueKind {
ExactValue_Count,
};
gb_global char const *exact_value_kind_string[ExactValue_Count] = {
"Invalid",
"Bool",
"String",
"Integer",
"Float",
"Complex",
"Quaternion",
"Pointer",
"Compound",
"Procedure",
"Typeid",
"String16",
};
struct ExactValue {
ExactValueKind kind;
union {