diff options
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 fbf301878..318239b25 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1593,7 +1593,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { found = current_scope_lookup_entity(c->context.scope, str); } if (found == NULL) { - entity = make_entity_variable(c->allocator, c->context.scope, token, NULL, (gd->flags&VarDeclFlag_immutable) != 0); + entity = make_entity_variable(c->allocator, c->context.scope, token, NULL, gd->token.kind == Token_let); entity->identifier = name; AstNode *fl = c->context.curr_foreign_library; |