mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-27 01:26:20 +00:00
[Experimental] Add 'try' and `or_else' built-in procedures
This commit is contained in:
@@ -1667,7 +1667,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
|
||||
GB_ASSERT(ctx->curr_proc_sig != nullptr);
|
||||
|
||||
if (ctx->in_defer) {
|
||||
error(rs->token, "You cannot 'return' within a defer statement");
|
||||
error(rs->token, "'return' cannot be used within a defer statement");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user