From: Yukihiro Matsumoto Date: 2012-01-24T12:28:59+09:00 Subject: [ruby-core:42225] [ruby-trunk - Bug #5540][Rejected] Final comma in argument list before block causes syntax error Issue #5540 has been updated by Yukihiro Matsumoto. Status changed from Assigned to Rejected Syntax error is intentional. It was caused by a 1.9.2 bug. Matz. ---------------------------------------- Bug #5540: Final comma in argument list before block causes syntax error https://bugs.ruby-lang.org/issues/5540 Author: Joshua Ballanco Status: Rejected Priority: Normal Assignee: Yukihiro Matsumoto Category: core Target version: 1.9.3 ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] 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 -- http://bugs.ruby-lang.org/