Merge pull request #4176 from Feoramund/fix-context-error-msg

Remove extra format item at end of `context` error message
This commit is contained in:
gingerBill
2024-09-02 00:18:15 +01:00
committed by GitHub

View File

@@ -10928,7 +10928,7 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
case Token_context:
{
if (c->proc_name.len == 0 && c->curr_proc_sig == nullptr) {
error(node, "'context' is only allowed within procedures %p", c->curr_proc_decl);
error(node, "'context' is only allowed within procedures");
return kind;
}
if (unparen_expr(c->assignment_lhs_hint) == node) {