aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 1e05b295f..e7eafad17 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -301,6 +301,7 @@ void add_polymorphic_record_entity(CheckerContext *ctx, Ast *node, Type *named_t
e = alloc_entity_type_name(s, token, named_type);
e->state = EntityState_Resolved;
+ e->file = ctx->file;
e->pkg = ctx->pkg;
add_entity_use(ctx, node, e);
}