aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-12 12:56:47 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-12 12:56:47 +0100
commit0c05fc14327631b0fa70eadf60426d507812c4d5 (patch)
tree8bb33e68c87221581da6ca6ec83b80b36de4bddc /src/check_stmt.cpp
parent33eeb5852190ea6a363eced57050ba739061a32b (diff)
Prefix `type` and `let` to replace `immutable`
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 9aa5fd211..65a6387f8 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1538,7 +1538,7 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
case_ast_node(vd, ValueDecl, node);
GB_ASSERT(!c->context.scope->is_file);
- if (vd->token.kind != Token_var) {
+ if (vd->token.kind == Token_const) {
// NOTE(bill): Handled elsewhere
} else {
Entity **entities = gb_alloc_array(c->allocator, Entity *, vd->names.count);