aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-11-26 10:55:15 +0000
committergingerBill <bill@gingerbill.org>2018-11-26 10:55:15 +0000
commitd3c7d6d485a6851e64e252312882323461cff83f (patch)
tree2ce09a553a9b43702bc543a27883106764b15397
parent9b063ad9a3a3b4da52ac4d60c65a0ff7c8dd79cf (diff)
Fix #284
-rw-r--r--src/check_type.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}
}