diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-07 15:18:45 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-07 15:18:45 +0100 |
| commit | b782fca75bbd3f8bd36b076e42e85005df48f70f (patch) | |
| tree | f64661ac5777cd97ec78aac50f5bef9e24680d42 /src/check_stmt.cpp | |
| parent | 0230b8807851de2b1e9975a1c292a0a4471936f9 (diff) | |
Fix `using` bug
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index fa5f8f428..cb1aa86ab 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1983,7 +1983,7 @@ gb_internal void check_value_decl_stmt(CheckerContext *ctx, Ast *node, u32 mod_f for (auto const &entry : scope->elements) { Entity *f = entry.value; if (f->kind == Entity_Variable) { - Entity *uvar = alloc_entity_using_variable(e, f->token, f->type, nullptr); + Entity *uvar = alloc_entity_using_variable(e, f->token, f->type, e->identifier); uvar->flags |= (e->flags & EntityFlag_Value); Entity *prev = scope_insert(ctx->scope, uvar); if (prev != nullptr) { |