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 [IPv6:2a01:4f8:1c0c:6b10::1]) (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 5FF841F44D for ; Fri, 22 Mar 2024 22:32:12 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=AjGEhmql; 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=LYmVI3j+; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 4F1618367A; Fri, 22 Mar 2024 22:32:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1711146724; bh=wvt8eYs0+XtPr2BdAQXUXXfy4QQrKWNCy0EHsBrPDm0=; 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=AjGEhmqlhxPiYnggfqitZkDF7wrhWW+KMNBJKP17F1HjuImeI+nT5NxZh6XyboxJ4 jdZRS6JmY/++5/WW0yEH0UltSO8qgDlgPe5Rc9Le+M5lA55lWjwOI7XukJu3k/dFOX sqxf9PtBFp/mumtFJHWdTWMOCbF8pPBvQ9xHhpVA= 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 5D02C835C3 for ; Fri, 22 Mar 2024 22:32:00 +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=LYmVI3j+; dkim-atps=neutral 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=1H5KAT7h2ebk1sNIm2DEUYZK4b7OMPj4Wc7ixCuTcMs=; b=LYmVI3j+SVIYlFmFfHG6zVa1QvMuO5T+OPhGtvYhNe3IzmrcK6MHSmPMXlUgDXKupUBm fZ/AyjT5RkYF+vyZA21nTIYoEUOtxcbexOomIUbDRpjAntshnHWeFKiwon4DE5SAxKAEwz MzgEpW7KJvKgOTZfUO4NO3BVPQzaLUTegBw1xBj4uDaapYmGgHtYASdnzoLRfilnb73glC y3oDvuM5TTJ6t3ZdtHJOrKtZxR3BXHfTzJyxBtjCKn+y9w4LNUL1uwYiPXpk63uREH+hFk 7HMkYcgehnOkVRZhSHQNnqPaSW6hCggTg/qaBZ431pYqy+ww8z+151vUkqIctUhQ== Received: by filterdrecv-745c5f885d-k2kpk with SMTP id filterdrecv-745c5f885d-k2kpk-1-65FE06DE-E 2024-03-22 22:31:58.677874374 +0000 UTC m=+353165.602558850 Received: from herokuapp.com (unknown) by geopod-ismtpd-29 (SG) with ESMTP id asIEFE3PTumI_P4Y9FvJKg for ; Fri, 22 Mar 2024 22:31:58.521 +0000 (UTC) Date: Fri, 22 Mar 2024 22:31:58 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20388 X-Redmine-Issue-Author: tenderlovemaking X-Redmine-Issue-Assignee: jeremyevans0 X-Redmine-Issue-Priority: Normal X-Redmine-Sender: jeremyevans0 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: 93895 X-SG-EID: =?us-ascii?Q?u001=2ELyyp8a6L4BPdoBZ5kcNQuEdalXgUnCKLcPykf2c9d2sTWfvALBzqM4Ij+?= =?us-ascii?Q?Jg9Prp2eVDkf9lIZhzc05KfUT4Npfgnigb95d+v?= =?us-ascii?Q?hGuAMoCQYcIcZf2FdbbmqLrWWosTYdYz+mIpNdq?= =?us-ascii?Q?jGj3avnWfbycDzzWGV9=2FtZLCHUaJPurBHoS0cIN?= =?us-ascii?Q?WJpamZkjFN87zOppueOWPCnYFLEXb4p8AY0G7zI?= =?us-ascii?Q?qmTa6eyD=2FpC2eD969f0gBZcTItFGaK5nVIltkq8?= =?us-ascii?Q?GljAMJkJgFj98SB+cLeK1qyVuw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: DMOU64VWWUWFQP5TK6ER3QUPLEPSMHOG X-Message-ID-Hash: DMOU64VWWUWFQP5TK6ER3QUPLEPSMHOG 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.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:117295] [Ruby master Bug#20388] super + ruby2_keywords isn't working List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "jeremyevans0 (Jeremy Evans) via ruby-core" Cc: "jeremyevans0 (Jeremy Evans)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20388 has been updated by jeremyevans0 (Jeremy Evans). jeremyevans0 (Jeremy Evans) wrote in #note-3: > jeremyevans0 (Jeremy Evans) wrote in #note-2: > > tenderlovemaking (Aaron Patterson) wrote in #note-1: > > > Sorry, I should be more specific. The code sample returns `nil` before 4f77d8d3, and since 4f77d8d3 it will raise an exception (it tries to mutate the `args` array) > > > > Thanks for the report. I'll work on fixing this in the compiler. > > Actually, compiler is fine, this is due to the anonymous splat optimization. Fix appears simple enough, I'll submit a PR shortly: PR: https://github.com/ruby/ruby/pull/10338 ---------------------------------------- Bug #20388: super + ruby2_keywords isn't working https://bugs.ruby-lang.org/issues/20388#change-107437 * Author: tenderlovemaking (Aaron Patterson) * Status: Open * Assignee: jeremyevans0 (Jeremy Evans) * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ```ruby class A def process action, ... end end class B < A def process method_name, *args args.freeze super end ruby2_keywords(:process) end p B.new.process(:foo, bar: :baz) ``` The above code started breaking at revision 4f77d8d3 -- 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/postorius/lists/ruby-core.ml.ruby-lang.org/