From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D11601F4C1 for ; Mon, 28 Nov 2022 08:17:14 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="HEecB80f"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 0C4217E76C; Mon, 28 Nov 2022 08:16:54 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; 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=HEecB80f; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 1624E7E749 for ; Mon, 28 Nov 2022 08:16:46 +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; s=s1; bh=ft+36SB1U1uX6THmQxFb9CKRmD5KmlTS5lTrjE6Bwcs=; b=HEecB80fALQpC29TyyHtfSzhNfpP/EDV4xKI4oC/Zv78v8EQMqIXbhNIuuSvh7Vp/uvh 7F6FNHogAEXyC8OCXF/HUXoMd7U+HKaxRsZtfjTNPenHCwrwEiKTUV/wkui2MdYVNPH/6v oEuk0SNAccKDU2PeBAqtwz3QwxGvtlBCNeb8q/kIK8DbfM2e5BqfyV0Fv0kZ0iCcIn6rrN 8foh9qbljc5wGAaj+H+aRSyPLPh4614ozfvvYDZO4uLrKnWVY1DA0M7f8GWc1ePtAO/RU8 /JrgzVs2BsWaeqHDmPAHOqB387GpX65LUsYr+jAfa4CrabT+ooL1vVIFm7KzYgHQ== Received: by filterdrecv-557d69979-tvnm7 with SMTP id filterdrecv-557d69979-tvnm7-1-63846E6D-3 2022-11-28 08:16:45.127484335 +0000 UTC m=+897065.245856500 Received: from herokuapp.com (unknown) by geopod-ismtpd-3-0 (SG) with ESMTP id cmcYdMNqTiSkQb7tICdNEA for ; Mon, 28 Nov 2022 08:16:44.966 +0000 (UTC) Date: Mon, 28 Nov 2022 08:16:45 +0000 (UTC) From: "shugo (Shugo Maeda)" Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 19134 X-Redmine-Issue-Author: shugo X-Redmine-Issue-Assignee: matz X-Redmine-Sender: shugo 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: 87381 X-SG-EID: =?us-ascii?Q?o0C=2FsDUd4ZFGiDZCTbvVjqibxcpCfydz4lwnBQWyXZ+Plw=2FfhrG0CQPbrktOPX?= =?us-ascii?Q?NfKIrb7bilCwkXET66DNxoL3Ymchr7v8gnBdcTn?= =?us-ascii?Q?FgxVdAzhGqxuKjyx2D8j2vKnvaQLVZ9+H=2Fa+e7Q?= =?us-ascii?Q?oF2GyWJk3wvQM3VXvajiIHXhJ9Bp1Urt7Vz5Ftl?= =?us-ascii?Q?UayQOVVGomPpzG31=2F08hGZs4Nwb231bAwR6zVJC?= =?us-ascii?Q?jtbarle2cx9Pqe3N762JefborWMeA6wD+aHxyJP?= =?us-ascii?Q?rjrYQsl3QmVe5I3zttf8Q=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: 24DIATZZ66KVAV6MUW4RH2VJGVPX4753 X-Message-ID-Hash: 24DIATZZ66KVAV6MUW4RH2VJGVPX4753 X-MailFrom: bounces+313651-12dc-ruby-dev=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 (Japanese)" Subject: =?utf-8?q?=5Bruby-dev=3A52003=5D_?= [Ruby master Feature#19134] ** is not allowed in def foo(...) List-Id: "Ruby developers (Japanese)" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Issue #19134 has been updated by shugo (Shugo Maeda). I've created a pull request: https://github.com/ruby/ruby/pull/6818 With this change a test of rbs.gem fails because argument types of` def foo(...)` is changed to `(*untyped, **untyped **)` from `(*untyped)`, but I believe it's right. (however, the specifal variable name `**` should be hidden by rbs.gem.) I've created a issue: https://github.com/ruby/rbs/issues/1163 ---------------------------------------- Feature #19134: ** is not allowed in def foo(...) https://bugs.ruby-lang.org/issues/19134#change-100289 * Author: shugo (Shugo Maeda) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) ---------------------------------------- `*` and `&` are allowed in the body of a method with `...` argument forwarding, but `**` is not allowed. ``` def foo(...) bar(*) # OK baz(&) # OK quux(**) # NG end ``` Is it intended behavior? It seems that parse.y has code like `#ifdef RUBY3_KEYWORDS`, and if RUBY3_KEYWORDS, `**` will also be supported. -- https://bugs.ruby-lang.org/