Explorar o código

Fix `@(static)` error message bug

gingerBill hai 1 ano
pai
achega
45d7a670ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entity.cpp

+ 1 - 1
src/entity.cpp

@@ -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;
 	}