aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-05-26 15:16:45 +0100
committergingerBill <bill@gingerbill.org>2019-05-26 15:16:45 +0100
commit5697d6df7466ef5f4e676f391c104ef165cadb6b (patch)
tree0ea6bf2619a510d97bc5ed19b8fd891740c334e1 /src/check_type.cpp
parent426c1ed6f407bcfd3c98e266075f9e9f2cca711c (diff)
-go-to-definitions (OGTD file format)
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);
}