From: janosch84@... Date: 2017-10-05T07:58:05+00:00 Subject: [ruby-core:83120] [Ruby trunk Bug#13976] SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2 Issue #13976 has been reported by janosch-x (Janosch M��ller). ---------------------------------------- Bug #13976: SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2 https://bugs.ruby-lang.org/issues/13976 * Author: janosch-x (Janosch M��ller) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- ```ruby # ruby 2.4.1 p :bar do end # => :bar p :bar {} # => :bar # ruby 2.4.2 p :bar do end # => :bar p :bar {} # => SyntaxError: syntax error, unexpected '{', expecting end-of-input ``` In the wild this will mainly affect rspec code: ```ruby let :foo { bar } ``` -- https://bugs.ruby-lang.org/ Unsubscribe: