Fix @(static) error message bug
This commit is contained in:
1 parent
86e82dc182
commit
45d7a670ce
1 file changed
+1
-1
+1
-1
@@ -496,7 +496,7 @@ gb_internal bool is_entity_local_variable(Entity *e) {
|
||||
if (e->scope == nullptr) {
|
||||
return true;
|
||||
}
|
||||
if (e->flags & (EntityFlag_ForValue|EntityFlag_SwitchValue)) {
|
||||
if (e->flags & (EntityFlag_ForValue|EntityFlag_SwitchValue|EntityFlag_Static)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user