From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on starla X-Spam-Level: X-Spam-Status: No, score=-1.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=O9JBRVoA; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=tnolKvMQ; dkim-atps=neutral Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id DC02A1F4FF for ; Wed, 8 Oct 2025 12:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1759928274; bh=WVgjLsMOT25vB8QhD7kyK3ritE0moRDn4RxqaEYIfHc=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=O9JBRVoAMPwnirb62pBgfnDzHHHaODBK7dkgMjrjGrcrCrYlgcuM+O+Fs2dupSAmJ ndJ/fJEgAK9g/px2nTLNKFSsGsxCmbDrbNN2rrb/VmF2ISign0EyfEVI3QX1tYtbTw 6IEZceaxz8PouLA+ap4s8oXWH0c0tVpndMJt5XGw= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 52590491C8 for ; Wed, 8 Oct 2025 12:57:54 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=tnolKvMQ; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 2F5BE42DD3 for ; Wed, 8 Oct 2025 12:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=date:from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:date:from:subject:to; s=s1; bh=fqflxTiiV+bzQ0PoSOuGVyxxTUi/9vMTSfHwmE4TJzs=; b=tnolKvMQ9gKusPg/ZAwbfvLZmOEGqtpqpc3GQFKgMG38+cAdm69JoGRwwGDrv/2JbjAz /qer7M8Mxzxtc/B/LzxAq6FmsLgPDM7JYieM8FdRt3bY8cO/1vjwL4P1/IqNJ/fNLdpdCZ bfCu3Zx2J7PK0dI+JMTG4peC84PNFwiZsajeA4/JA2Sw02F3tD+kFGUToKcesLNb9OHBTw fgQlWvYP9jUISgCJB5TRisSOQrUZMMAAT2yR5ioTCUfxE0iALOZsh7S2KrbLVLt3V2fHLF bVx05y1OUsO7LY5BvgLMKoHRkspFgC+w7kE6SPk/Cm2z1XfBWaAQ6hoN+GGHiUNw== Received: by recvd-65696df74f-nq6fb with SMTP id recvd-65696df74f-nq6fb-1-68E65F8E-4 2025-10-08 12:56:46.075555123 +0000 UTC m=+7723823.563907597 Received: from herokuapp.com (unknown) by geopod-ismtpd-16 (SG) with ESMTP id HNafFy07TAStNxFBLO6b8A for ; Wed, 08 Oct 2025 12:56:46.039 +0000 (UTC) Date: Wed, 08 Oct 2025 12:56:46 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21623 X-Redmine-Issue-Author: tompng X-Redmine-Issue-Assignee: Group (prism) X-Redmine-Issue-Priority: Normal X-Redmine-Sender: Earlopain X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 100258 X-SG-EID: =?us-ascii?Q?u001=2EeN8dK4P86Am4z06GVDKdfuyUr=2FYDMIW0L=2F3i+rfu20a8IqvHXr8dkK0nT?= =?us-ascii?Q?JnNCPZBfBfcBXIzVHSukhq0Fst8w76lX7vgcOKR?= =?us-ascii?Q?zLI=2FaLZlFeIYXHQuWawnvfRset2tNBtoQRCjC2n?= =?us-ascii?Q?wSo8biv=2Fjy47e7gfSo5BHO3+rKLKo8D4jlnGRJk?= =?us-ascii?Q?B06v6AZuNXaf3kfuUWXYCrIXlKRAqHJZxbVkeFw?= =?us-ascii?Q?tJ1fyAkzcVr32bY9usZG9Ck9p8adgyYvEt2ida1?= =?us-ascii?Q?mfkWXvWL8gF7Hpjw8HkG04rm=2FA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: OEAAXQPAC7Y4CFA334SSEYIRTP5Y2MAP X-Message-ID-Hash: OEAAXQPAC7Y4CFA334SSEYIRTP5Y2MAP X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:123432] [Ruby Bug#21623] Endless method definition without parenthesis is wrongly accepted in Prism List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "Earlopain (Earlopain _) via ruby-core" Cc: "Earlopain (Earlopain _)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21623 has been updated by Earlopain (Earlopain _). Attempt at https://github.com/ruby/prism/pull/3674 ---------------------------------------- Bug #21623: Endless method definition without parenthesis is wrongly accepted in Prism https://bugs.ruby-lang.org/issues/21623#change-114802 * 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/