Allow for more "constantable" union values

This commit is contained in:
gingerBill committed 2026-06-29 00:55:07 +01:00
1 parent ca3ef41dcf
commit 6e65b5e4bc
1 file changed
-2
-2
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) {