Actions
Bug #20217
closedvoid value not checked for begin/ensure/rescue
Description
foo = begin
return
ensure
end
I would expect this to raise a syntax error for a void value expression being assigned, but the ensure
makes it so that this isn't checked.
Updated by nobu (Nobuyoshi Nakada) 12 months ago
- Status changed from Open to Closed
Applied in changeset git|fed877c791f1c16a2b1a2c9a167b7f433505794d.
[Bug #20217] return
with ensure
is a void value expression
Actions
Like0
Like0