This commit is contained in:
gingerBill
2026-06-22 13:17:43 +01:00
parent c843f3bb65
commit 6cf57c1eaa

View File

@@ -10179,6 +10179,10 @@ gb_internal ExprKind check_or_branch_expr(CheckerContext *c, Operand *o, Ast *no
}
}
if (c->in_defer) {
error(node, "'%.*s' cannot be used within a 'defer'", LIT(name));
}
return Expr_Expr;
}