aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-26 13:59:15 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-26 13:59:15 +0100
commita0d8dcd9743c1f1a4dabfc5bba7301785ded98a3 (patch)
treefd0bc8416b8a2b71456f0b4a6bf63a4e82373b13 /src/check_stmt.cpp
parentc642e326cecd3dc33ca5a9efb6330e757c378dd9 (diff)
Remove `let`
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 104733e67..0eac4936b 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1657,7 +1657,6 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
if (decl->kind == AstNode_GenDecl) {
switch (decl->GenDecl.token.kind) {
case Token_var:
- case Token_let:
check_stmt(c, decl, flags);
break;
}
@@ -1673,8 +1672,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
for_array(i, gd->specs) {
AstNode *spec = gd->specs[i];
switch (gd->token.kind) {
- case Token_var:
- case Token_let: {
+ case Token_var: {
ast_node(vd, ValueSpec, spec);
Entity **entities = gb_alloc_array(c->allocator, Entity *, vd->names.count);
@@ -1699,7 +1697,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->token.kind == Token_let);
+ entity = make_entity_variable(c->allocator, c->context.scope, token, NULL, false);
entity->identifier = name;
AstNode *fl = c->context.curr_foreign_library;