Project

General

Profile

Actions

Bug #21660

open

No-parentheses endless method definition that has parameter destructuring is wrongly accepted in Prism

Bug #21660: No-parentheses endless method definition that has parameter destructuring is wrongly accepted in Prism

Added by tompng (tomoya ishida) 1 day ago. Updated about 22 hours ago.

Status:
Open
Assignee:
Target version:
-
ruby -v:
ruby 3.5.0dev (2025-11-01T00:18:01Z master 17a7b4e031) +PRISM [x86_64-linux]
[ruby-core:123631]

Description

This is syntax error in parse.y but not in Prism.

def f a, (b) = 1

Related to #21623

Actions

Also available in: PDF Atom