Project

General

Profile

Actions

Bug #5540

closed

Final comma in argument list before block causes syntax error

Added by jballanc (Joshua Ballanco) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
Backport:
[ruby-core:40645]

Description

The following code parses and runs correctly under 1.9.2-p290 but causes a syntax error under 1.9.3-p0:

def test(foo, &block); end
test 'hello', do; end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0