Project

General

Profile

Actions

Bug #14233

closed

syntax error caused by paren-less method call with kwargs and block

Added by cremno (cremno phobia) almost 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:84444]

Description

Example:

3.step by: 3, to: 9 {|i| p i}

Expected result (before 2.5.0):

3
6
9

Actual result (2.5.0):

a.rb:1: syntax error, unexpected '{', expecting end-of-input
3.step by: 3, to: 9 {|i| p i}
                    ^

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #13976: SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2ClosedActions
Actions

Also available in: Atom PDF