mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 02:19:30 +00:00
Fix #6863
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user