aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.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_expr.cpp
parent426c1ed6f407bcfd3c98e266075f9e9f2cca711c (diff)
-go-to-definitions (OGTD file format)
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 3acc369a0..928f3f063 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -371,6 +371,7 @@ bool find_or_generate_polymorphic_procedure(CheckerContext *c, Entity *base_enti
add_entity_and_decl_info(&nctx, ident, entity, d);
// NOTE(bill): Set the scope afterwards as this is not real overloading
entity->scope = scope->parent;
+ entity->file = base_entity->file;
entity->pkg = base_entity->pkg;
AstFile *file = nullptr;