Allow for more "constantable" union values

This commit is contained in:
gingerBill
2026-06-29 00:55:07 +01:00
parent ca3ef41dcf
commit 6e65b5e4bc

View File

@@ -2699,8 +2699,6 @@ gb_internal bool is_type_union_constantable(Type *type) {
if (bt->Union.variants.count == 0) {
return true;
} else if (bt->Union.variants.count == 1) {
return is_type_constant_type(bt->Union.variants[0]);
}
for (Type *v : bt->Union.variants) {