aboutsummaryrefslogtreecommitdiff
path: root/src/checker/entity.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-08-30 23:32:04 +0100
committerGinger Bill <bill@gingerbill.org>2016-08-30 23:32:04 +0100
commitcda0234d487ab73a1c87cbdcd74e300718ca7d0a (patch)
treebf7ccddca7a7c0146cfdba35ab731f93edd25201 /src/checker/entity.cpp
parenta06f70d5d95bb7889bf9e8b920d70fd10daf7c12 (diff)
Subtyping Polymorphic arguments; `using` procedure parameters
Diffstat (limited to 'src/checker/entity.cpp')
-rw-r--r--src/checker/entity.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp
index 8667aa0c7..480e619a9 100644
--- a/src/checker/entity.cpp
+++ b/src/checker/entity.cpp
@@ -93,9 +93,10 @@ Entity *make_entity_type_name(gbAllocator a, Scope *scope, Token token, Type *ty
return entity;
}
-Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type) {
+Entity *make_entity_param(gbAllocator a, Scope *scope, Token token, Type *type, b32 is_anonymous) {
Entity *entity = make_entity_variable(a, scope, token, type);
entity->Variable.used = true;
+ entity->Variable.anonymous = cast(b8)is_anonymous;
return entity;
}