mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 14:54:52 -04:00
Allow for more "constantable" union values
This commit is contained in:
1 parent
ca3ef41dcf
commit
6e65b5e4bc
1 file changed
-2
@@ -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