浏览代码

Fix `@(static)` error message bug

gingerBill 1 年之前
父节点
当前提交
45d7a670ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 	}