From 655931f0ea282f8dbaa769a213311a774e4f84c6 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 29 Jul 2017 15:18:36 +0100 Subject: Minor Simplification of threading demo --- src/check_decl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 6c550809c..72ca6d7c4 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -231,6 +231,7 @@ void check_const_decl(Checker *c, Entity *e, AstNode *type_expr, AstNode *init, } break; // NOTE(bill): Check to see if the expression it to be aliases + #if 1 case Addressing_Builtin: if (e->type != nullptr) { error(type_expr, "A constant alias of a built-in procedure may not have a type initializer"); @@ -245,8 +246,9 @@ void check_const_decl(Checker *c, Entity *e, AstNode *type_expr, AstNode *init, e->Alias.base = operand.overload_entities[0]; e->type = t_invalid; return; + #endif } - + #if 1 if (entity != nullptr) { switch (entity->kind) { case Entity_Alias: @@ -276,6 +278,7 @@ void check_const_decl(Checker *c, Entity *e, AstNode *type_expr, AstNode *init, return; } } + #endif } if (init != nullptr) { -- cgit v1.2.3