This commit is contained in:
gingerBill committed 2026-06-22 13:17:43 +01:00
1 parent c843f3bb65
commit 6cf57c1eaa
1 file changed
+4
+4
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;
}