ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "alanwu (Alan Wu) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "alanwu (Alan Wu)" <noreply@ruby-lang.org>
Subject: [ruby-core:123384] [Ruby Bug#21623] Endless method definition without parenthesis is wrongly accepted in Prism
Date: Fri, 03 Oct 2025 15:40:56 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-114755.20251003154055.10330@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-21623.20251003153520.10330@ruby-lang.org>

Issue #21623 has been updated by alanwu (Alan Wu).

Assignee set to prism

----------------------------------------
Bug #21623: Endless method definition without parenthesis is wrongly accepted in Prism
https://bugs.ruby-lang.org/issues/21623#change-114755

* Author: tompng (tomoya ishida)
* Status: Open
* Assignee: prism
* ruby -v: ruby 3.5.0dev (2025-10-02T03:48:32Z master 88222caaa9) +PRISM [x86_64-linux]
* Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
These are syntax error in parse.y but accepted in Prism
~~~ruby
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
~~~




-- 
https://bugs.ruby-lang.org/
______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

  reply	other threads:[~2025-10-03 15:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-03 15:35 [ruby-core:123383] " tompng (tomoya ishida) via ruby-core
2025-10-03 15:40 ` alanwu (Alan Wu) via ruby-core [this message]
2025-10-08 12:56 ` [ruby-core:123432] " Earlopain (Earlopain _) via ruby-core

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-114755.20251003154055.10330@ruby-lang.org \
    --to=ruby-core@ml.ruby-lang.org \
    --cc=noreply@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).