aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-10-27 11:10:55 +0000
committergingerBill <bill@gingerbill.org>2024-10-27 11:10:55 +0000
commitf32e27d2e4e4fb45206b5b6c36f5264636979ff7 (patch)
treea89cd1f4c21234a47b76adb946b3b264097d1810 /src/check_expr.cpp
parent69d375705e33572fa21d376f4ce25521dd541a6c (diff)
Fix bug caused due to incorrect type checking looking for `context` not defined in a context
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 d3141ed84..b22bfe4b6 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -8008,6 +8008,7 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
pt = data.gen_entity->type;
}
}
+ pt = base_type(pt);
if (pt->kind == Type_Proc && pt->Proc.calling_convention == ProcCC_Odin) {
if ((c->scope->flags & ScopeFlag_ContextDefined) == 0) {