소스 검색

Fix bug caused due to incorrect type checking looking for `context` not defined in a context

gingerBill 10 달 전
부모
커밋
63f880ae80
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/check_expr.cpp

+ 1 - 0
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) {