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.
Updated by mame (Yusuke Endoh) almost 7 years ago
- Status changed from Open to Closed
Fixed at r61710. Thank you!
Actions
Like0
Like0