Sfoglia il codice sorgente

Fix `@(static)` error message bug

gingerBill 1 anno fa
parent
commit
45d7a670ce
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 	}