Actions
Bug #14233
closedsyntax error caused by paren-less method call with kwargs and block
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}
^
Updated by shevegen (Robert A. Heiler) almost 7 years ago
Does not work for me on 2.4.3:
syntax error, unexpected '{', expecting end-of-input
3.step by: 3, to: 9 {|i| p i}
Are you sure that this has worked before?
Updated by nobu (Nobuyoshi Nakada) almost 7 years ago
- Is duplicate of Bug #13976: SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2 added
Updated by nobu (Nobuyoshi Nakada) almost 7 years ago
- Status changed from Open to Rejected
Actions
Like0
Like0Like0Like0