diff options
| author | gingerBill <bill@gingerbill.org> | 2018-05-27 00:10:38 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-05-27 00:10:38 +0100 |
| commit | eb11edabe092541144cd3ba18b09bd11fcf7a958 (patch) | |
| tree | 597112318141fb292872f9286e775ff66f5da797 /src/check_stmt.cpp | |
| parent | c067b90403ab8493daa0bf5867b2bd92319feea5 (diff) | |
Add file scopes for the packages
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index c0e885664..4c47385cc 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1487,7 +1487,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { } if (entity == nullptr) { - entity = alloc_entity_dummy_variable(c->global_scope, ast_node_token(name)); + entity = alloc_entity_dummy_variable(universal_scope, ast_node_token(name)); } entities[entity_count++] = entity; @@ -1821,7 +1821,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { } } if (entity == nullptr) { - entity = alloc_entity_dummy_variable(c->global_scope, ast_node_token(name)); + entity = alloc_entity_dummy_variable(universal_scope, ast_node_token(name)); } entity->parent_proc_decl = c->context.curr_proc_decl; entities[entity_count++] = entity; |