From: genki@...21g.com Date: 2018-01-09T05:18:09+00:00 Subject: [ruby-core:84754] [Ruby trunk Bug#14341] do/end blocks after arrow operator don't work with ensure/rescue/else Issue #14341 has been reported by takiuchi (Genki Takiuchi). ---------------------------------------- Bug #14341: do/end blocks after arrow operator don't work with ensure/rescue/else https://bugs.ruby-lang.org/issues/14341 * Author: takiuchi (Genki Takiuchi) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.5.0 * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: