aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-12 14:19:12 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-12 14:19:12 +0100
commit2ab0d9757388d1ec84db56b6ebb49a2ffff34d62 (patch)
treeaa8a4640256bc22befd823b8ec1b4b1d6642aebf /src/check_expr.cpp
parent0c05fc14327631b0fa70eadf60426d507812c4d5 (diff)
`import` and `import_load` as keywords; Fix procedure literal call trick
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index aac533b17..cf35c30b3 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -5510,7 +5510,7 @@ ExprKind check_expr_base_internal(Checker *c, Operand *o, AstNode *node, Type *t
check_open_scope(c, pl->type);
{
decl = make_declaration_info(c->allocator, c->context.scope, c->context.decl);
- decl->proc_decl = pl->type;
+ decl->proc_decl = node;
c->context.decl = decl;
if (pl->tags != 0) {