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=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no 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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id F1F3E1F4CC for ; Sat, 21 Dec 2024 18:47:28 +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=KJlrs80G; 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=LBmNfkta; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1734806846; bh=B9m/bYipxWiDSbNR9hV3Va/o0qZv52bq1MVIcf4n5S0=; 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=KJlrs80G98PxMfbawFCYyhLaoValairxQf5MLmwKr2bMXppNcgUxP+MiofMAx/OHD FZhSDSUcAFM/Bjz781DreMEEb6R4HAHLk26p6UFvmU43toTf1NwUte2/YrjcQ3GXwT k4tG9ZXN6ZDyRtxq43Jn7JteRQDKBfYXGNWF57Y8= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 7FAF045F32 for ; Sat, 21 Dec 2024 18:47:26 +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=LBmNfkta; dkim-atps=neutral Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 2BB7743D5C for ; Sat, 21 Dec 2024 18:47:22 +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=IsEpxKLceKgLqpW1uqgLUv2987m6mlmHh00yFRCOQVo=; b=LBmNfkta0I0iMdgmtGBngUOJF064RbwVE0xhtN6ZBIRwkl9aAkRQbXHTTMYdiwMs14k8 PS+TlwgFPnSbbHeJEDjcyPm6nja6CpivixWX09chCqacFVpAcDuO3UP7RSnUVc/qqS80xQ QR3+Y2FKgcrmPkVGc+eJ5jzlL0OpCIo+wdYLZxfdFmutFB+sQ9M6lpjueQLI+DSZWIXOo8 rDjXimZfG5oM302sWiI12HyAI9lIl320qsj5X4xCezGRZLUTdUSlAOhbQXML/S4h1Bsf2d XxrTBYKrEKI6RT+h0t3eQb0DVQMXtL/ZcVfAvue4TOVSrzRIyAWEAlHMOgids6vg== Received: by recvd-5c8ccdbd88-bvndl with SMTP id recvd-5c8ccdbd88-bvndl-1-67670D39-1 2024-12-21 18:47:21.066663603 +0000 UTC m=+3187544.825181003 Received: from herokuapp.com (unknown) by geopod-ismtpd-14 (SG) with ESMTP id m4jkXSm-TiWc83fa5n042w for ; Sat, 21 Dec 2024 18:47:21.005 +0000 (UTC) Date: Sat, 21 Dec 2024 18:47:21 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20970 X-Redmine-Issue-Author: tompng X-Redmine-Issue-Priority: Normal X-Redmine-Sender: kddnewton 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: 97033 X-SG-EID: =?us-ascii?Q?u001=2E41nWPij=2FD1kdGmpgWeHScbb9X8tZePZrQQx3bl8Vy2odBuMhLMhId2kIq?= =?us-ascii?Q?I4MmMJ43lNHfKPNNds=2Fb3JsTYpYoWyQb3+sPV4d?= =?us-ascii?Q?vscaSKwkBzWWArXyFrAGWjRginiwy=2FUtrK0oSnb?= =?us-ascii?Q?OX0Z=2FW1Y=2Flgy09pS87qGqYXsmilemM4h9dBnAUI?= =?us-ascii?Q?BLzV62EY5ikyjaIkNFLVAdpBRZpmVhB5OZSJROC?= =?us-ascii?Q?p3aUAD0o9eyuScfEFW1qmDWgHRFaSI9a7iKZWEJ?= =?us-ascii?Q?edfAjmBTVtaGVt2iebeCvrgNhA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: NETJ6IWFHI23IUPAIERVWECJ7UHV2AZP X-Message-ID-Hash: NETJ6IWFHI23IUPAIERVWECJ7UHV2AZP 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:120356] [Ruby master Bug#20970] `it /1/i` raises undefined method 'it' for main (NoMethodError) even if binding.local_variables includes `it` List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "kddnewton (Kevin Newton) via ruby-core" Cc: "kddnewton (Kevin Newton)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20970 has been updated by kddnewton (Kevin Newton). I'm not sure if I'm reading this correctly or not. Is there any action required on Prism's side as of right now? Happy to make changes, though we are getting close to the release. ---------------------------------------- Bug #20970: `it /1/i` raises undefined method 'it' for main (NoMethodError) even if binding.local_variables includes `it` https://bugs.ruby-lang.org/issues/20970#change-111135 * Author: tompng (tomoya ishida) * Status: Open * ruby -v: ruby 3.4.0dev (2024-12-19T07:16:12Z master 335bba0fde) +PRISM [x86_64-linux] * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED ---------------------------------------- `it` parameter became a local variable with #20965, but it does not behave like local variable with `--parser=prism` ~~~ruby i=2 42.tap do p it # 42 p local_variables # [:it, :i] p it /1/i # should be 21, got NoMethodError end ~~~ It prints `42`, `[:it, :i], `21` with `--parser=parse.y` -- 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/