From 63f880ae8088c8cf596dcdbdaa916c593eb3f377 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 27 Oct 2024 11:10:55 +0000 Subject: [PATCH] Fix bug caused due to incorrect type checking looking for `context` not defined in a context --- src/check_expr.cpp | 1 + 1 file changed, 1 insertion(+) 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) {