From 0c05fc14327631b0fa70eadf60426d507812c4d5 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 12 Jun 2017 12:56:47 +0100 Subject: Prefix `type` and `let` to replace `immutable` --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_stmt.cpp') 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); -- cgit v1.2.3