From d3c7d6d485a6851e64e252312882323461cff83f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 26 Nov 2018 10:55:15 +0000 Subject: Fix #284 --- src/check_type.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 235aaec71..858b1504c 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1566,6 +1566,9 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is param->state = EntityState_Resolved; // NOTE(bill): This should have be resolved whilst determining it add_entity(ctx->checker, scope, name, param); + if (is_using) { + add_entity_use(ctx, name, param); + } array_add(&variables, param); } } -- cgit v1.2.3