From: jean.boussier@... Date: 2021-05-12T11:40:02+00:00 Subject: [ruby-core:103797] [Ruby master Bug#17858] Trailing comma after a `&block` parameter cause a syntax error Issue #17858 has been reported by byroot (Jean Boussier). ---------------------------------------- Bug #17858: Trailing comma after a `&block` parameter cause a syntax error https://bugs.ruby-lang.org/issues/17858 * Author: byroot (Jean Boussier) * Status: Open * Priority: Normal * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Something I just noticed: ```ruby some_long_method( 1, &block, # syntax error, unexpected ',', expecting ')' ) ``` Which seems inconsistent to me as it works for regular parameters: ```ruby some_long_method( 1, 2, ) ``` I'm not sure if this is an intended limitation or just an oversight. -- https://bugs.ruby-lang.org/ Unsubscribe: