Project

General

Profile

Actions

Bug #21623

open

Endless method definition without parenthesis is wrongly accepted in Prism

Added by tompng (tomoya ishida) about 4 hours ago. Updated about 4 hours ago.

Status:
Open
Assignee:
Target version:
-
ruby -v:
ruby 3.5.0dev (2025-10-02T03:48:32Z master 88222caaa9) +PRISM [x86_64-linux]
[ruby-core:123383]

Description

These are syntax error in parse.y but accepted in Prism

def f x: = 1
def f ... = 1
def f * = 1
def f ** = 1
def f & = 1
def f *a = 1
def f **a = 1
def f &a = 1

Updated by alanwu (Alan Wu) about 4 hours ago

  • Assignee set to prism
Actions

Also available in: Atom PDF

Like0
Like0