[ruby-core:123631] [Ruby Bug#21660] No-parentheses endless method definition that has parameter destructuring is wrongly accepted in Prism
Issue #21660 has been reported by tompng (tomoya ishida). ---------------------------------------- Bug #21660: No-parentheses endless method definition that has parameter destructuring is wrongly accepted in Prism https://bugs.ruby-lang.org/issues/21660 * Author: tompng (tomoya ishida) * Status: Open * Assignee: prism * ruby -v: ruby 3.5.0dev (2025-11-01T00:18:01Z master 17a7b4e031) +PRISM [x86_64-linux] * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- This is syntax error in parse.y but not in Prism. ~~~ruby def f a, (b) = 1 ~~~ Related to #21623 -- https://bugs.ruby-lang.org/
Issue #21660 has been updated by Earlopain (Earlopain _). Sorry, I forgot about your comment on https://github.com/ruby/prism/pull/3674. https://github.com/ruby/prism/pull/3700 will fix this ---------------------------------------- Bug #21660: No-parentheses endless method definition that has parameter destructuring is wrongly accepted in Prism https://bugs.ruby-lang.org/issues/21660#change-115021 * Author: tompng (tomoya ishida) * Status: Open * Assignee: prism * ruby -v: ruby 3.5.0dev (2025-11-01T00:18:01Z master 17a7b4e031) +PRISM [x86_64-linux] * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- This is syntax error in parse.y but not in Prism. ~~~ruby def f a, (b) = 1 ~~~ Related to #21623 -- https://bugs.ruby-lang.org/
Issue #21660 has been updated by Earlopain (Earlopain _). Fixed with https://github.com/ruby/ruby/commit/d73eba51853fde74624984b3063bd648b664e3e3 ---------------------------------------- Bug #21660: No-parentheses endless method definition that has parameter destructuring is wrongly accepted in Prism https://bugs.ruby-lang.org/issues/21660#change-115093 * Author: tompng (tomoya ishida) * Status: Open * Assignee: prism * ruby -v: ruby 3.5.0dev (2025-11-01T00:18:01Z master 17a7b4e031) +PRISM [x86_64-linux] * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- This is syntax error in parse.y but not in Prism. ~~~ruby def f a, (b) = 1 ~~~ Related to #21623 -- https://bugs.ruby-lang.org/
participants (2)
-
Earlopain (Earlopain _) -
tompng (tomoya ishida)