mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix bug caused due to incorrect type checking looking for context not defined in a context
This commit is contained in:
@@ -8008,6 +8008,7 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
|
|||||||
pt = data.gen_entity->type;
|
pt = data.gen_entity->type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pt = base_type(pt);
|
||||||
|
|
||||||
if (pt->kind == Type_Proc && pt->Proc.calling_convention == ProcCC_Odin) {
|
if (pt->kind == Type_Proc && pt->Proc.calling_convention == ProcCC_Odin) {
|
||||||
if ((c->scope->flags & ScopeFlag_ContextDefined) == 0) {
|
if ((c->scope->flags & ScopeFlag_ContextDefined) == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user