mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Add more check_is_operand_compound_lit_constant uses
This commit is contained in:
@@ -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