mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-21 20:10:35 +00:00
Fix internal compiler error trigger for issue #212
This commit is contained in:
@@ -1201,6 +1201,10 @@ bool type_has_nil(Type *t) {
|
||||
}
|
||||
|
||||
bool elem_type_can_be_constant(Type *t) {
|
||||
t = base_type(t);
|
||||
if (t == t_invalid) {
|
||||
return false;
|
||||
}
|
||||
if (is_type_any(t) || is_type_union(t)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user