mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 02:19:30 +00:00
Allow for more "constantable" union values
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user