From: Joshua Ballanco Date: 2011-11-03T05:31:17+09:00 Subject: [ruby-core:40680] [ruby-trunk - Bug #5540] Final comma in argument list before block causes syntax error Issue #5540 has been updated by Joshua Ballanco. This was introduced by r32235: * parse.y: comma at the end of line is no longer allowed. A patch from Yukihiro Matsumoto . (fixed #3456). Is it intended that the above syntax should no longer be valid in Ruby 1.9.3? ---------------------------------------- Bug #5540: Final comma in argument list before block causes syntax error http://redmine.ruby-lang.org/issues/5540 Author: Joshua Ballanco Status: Open Priority: Normal Assignee: Category: 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://redmine.ruby-lang.org