From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 03FC81F5CB for ; Wed, 2 Oct 2024 11:52:04 +0000 (UTC) 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=yL0sUQi5; 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=qWPMW4G0; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1727869922; bh=ZmfTra1C44BmQ8SKw3IeNhKU+KJS1/UhpsleRb04XP4=; 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=yL0sUQi5LL9TMTglkZdVMqEkG4M3H3pKvLqBqxOu8xCxK/mINS6hn1VuQuNyr3+kH IN5oZLlvCNfLXEpD89o3gyGpRgpAXcn359dXQBje8tDJK1OkBDsghXeeFFZNtA5gO3 wBpKY65EobfDZotYJltYNjzLFz4Sb8f9SiusQwj0= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 9D59E43F60 for ; Wed, 2 Oct 2024 11:52:02 +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=qWPMW4G0; dkim-atps=neutral Received: from s.wfbtzhsv.outbound-mail.sendgrid.net (s.wfbtzhsv.outbound-mail.sendgrid.net [159.183.224.104]) by nue.mailmanlists.eu (Postfix) with ESMTPS id C127443EE2 for ; Wed, 2 Oct 2024 11:51:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=PM9cWKoJbMi0SVDtov20ZYmyyidEBfckL1gxfVcPyi4=; b=qWPMW4G03w2X7SvTm/NRGWQN7tWct/FRZJkHMAiuJtTMn4elKPh2gF2wcslzr2gG/6og Ce4Autgpy+WPhlutulQhIq9kOtyBWtCT2ysXIJkg9Q3NFduHo9BQaRftHZf47XvngyuCRb kOVpW1alug/ql7korJZ+RcLc/mfFo2ToFQKILA4gHx09acJHp0SnUyzkOmCY/sb87VMGPE FqvNpgsAmsYWFXJ8iPwksRMXxqbX4eVdOLpUFBv+DlpQE/zr5WXG8d8zP6uSeP/xBD7Vpu fSR9kmVkzyUgY6kVT1Y2I0n7lLLt3BT8Y1ULcSyriXiYto+MVpYFxwqhTdRAGmpg== Received: by recvd-55fc7fd858-gtn5k with SMTP id recvd-55fc7fd858-gtn5k-1-66FD33D6-B 2024-10-02 11:51:50.349576596 +0000 UTC m=+1706111.832557024 Received: from herokuapp.com (unknown) by geopod-ismtpd-28 (SG) with ESMTP id JVJXnhkbQmisX7YX4CQ-nQ for ; Wed, 02 Oct 2024 11:51:50.208 +0000 (UTC) Date: Wed, 02 Oct 2024 11:51:50 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20776 X-Redmine-Issue-Author: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu 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: 96038 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUcQQHADinY61Ko7il8BCjMyDBt+EEF?= =?us-ascii?Q?9m4+kwEZQidv49mdUf3GpGUxH7CKnB=2FH1vDaJoe?= =?us-ascii?Q?kaDtYgUeILKIscBqbhyr+6Kr2Bvs221Wzu9dj8D?= =?us-ascii?Q?xLdJ=2FLygxTo6ZeTYvePMhY3r7ihBFGTsmipGve6?= =?us-ascii?Q?W6=2FpB4lxN+pcPT2zxmtGMk2YQA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: BIE3OMPHQ7E76MJ4DBRBYQKBQNDRNISU X-Message-ID-Hash: BIE3OMPHQ7E76MJ4DBRBYQKBQNDRNISU X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119401] [Ruby master Bug#20776] [PRISM] Pattern matching syntax error message List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20776 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #20776: [PRISM] Pattern matching syntax error message https://bugs.ruby-lang.org/issues/20776 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Syntax error is fine, but is really expecting end-of-input there? ``` $ ruby -v -e '1 => $g' ruby 3.4.0dev (2024-10-01T14:59:58Z master 169a5ee99e) +PRISM [arm64-darwin23] -e:1: warning: possibly useless use of a variable in void context -e: -e:1: syntax errors found (SyntaxError) > 1 | 1 => $g | ^~ unexpected global variable, expecting end-of-input | ^~ expected a pattern expression after `=>` 2 | ``` And the line 2 is **not** in the input. -- 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/