Actions
Bug #14341
closeddo/end blocks after arrow operator don't work with ensure/rescue/else
Description
New feature #12906 seems lacks a bit of implementation.
Example:
-> do
rescue
end
# => syntax error, unexpected keyword_rescue
lambda do
rescue
end
# => it's ok!
This behavior looks inconsistent.
I think all do/end blocks should work with ensure/rescue/else.
Actions
Like0
Like0