mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 14:54:52 -04:00
Add more check_is_operand_compound_lit_constant uses
This commit is contained in:
1 parent
dd15a5bc8e
commit
4877214f34
3 files changed
+28
-7
No files matched your search
+4
-1
@@ -2536,7 +2536,10 @@ gb_internal bool elem_type_can_be_constant(Type *t) {
|
||||
if (t == t_invalid) {
|
||||
return false;
|
||||
}
|
||||
if (is_type_any(t) || is_type_raw_union(t)) {
|
||||
if (is_type_any(t)) {
|
||||
return false;
|
||||
}
|
||||
if (is_type_raw_union(t)) {
|
||||
return false;
|
||||
}
|
||||
if (is_type_union(t)) {
|
||||
|
||||
Reference in new issue
Block a user