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-Status: No, score=-3.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 3D4841F4B4 for ; Fri, 25 Sep 2020 19:41:44 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 68E97120B64; Sat, 26 Sep 2020 04:41:06 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 259D5120AFD for ; Sat, 26 Sep 2020 04:41:03 +0900 (JST) Received: by filterdrecv-p3las1-6f66587546-pq628 with SMTP id filterdrecv-p3las1-6f66587546-pq628-19-5F6E47F0-2 2020-09-25 19:41:36.048806159 +0000 UTC m=+337378.052205234 Received: from herokuapp.com (unknown) by ismtpd0053p1mdw1.sendgrid.net (SG) with ESMTP id UJsy2ayMSOyTwMBP_NebRA for ; Fri, 25 Sep 2020 19:41:35.899 +0000 (UTC) Date: Fri, 25 Sep 2020 19:41:36 +0000 (UTC) From: yancya@upec.jp Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 75998 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17190 X-Redmine-Issue-Author: yancya X-Redmine-Sender: yancya 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-SG-EID: =?us-ascii?Q?YlQNIXVHNtnhw3YfVL1B8wvWRfqXfOkmstXe2bo6GY2gQea5ke4dRJszWhxUV1?= =?us-ascii?Q?+8JYD2ZFfEMnurN3MBw9G5Z6K=2FJZyadjhL=2FCsJP?= =?us-ascii?Q?4j5HUXV8=2Fm65nz5TAYh7pXS2JdOYFu+td1CpJzC?= =?us-ascii?Q?ME3PLUaBgdvG52LpHwEgyHwvthoagk3QF66RT8U?= =?us-ascii?Q?ccUp62jkx2Kaxq7mzJHmTE9vasejK7+7Wmw=3D=3D?= To: ruby-dev@ruby-lang.org X-ML-Name: ruby-dev X-Mail-Count: 50962 Subject: [ruby-dev:50962] [Ruby master Bug#17190] Not working multiple assignment by rightward assignment statement X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: "Ruby developers \(Japanese\)" List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #17190 has been reported by yancya (Shinta Koyanagi). ---------------------------------------- Bug #17190: Not working multiple assignment by rightward assignment statement https://bugs.ruby-lang.org/issues/17190 * Author: yancya (Shinta Koyanagi) * Status: Open * Priority: Normal * ruby -v: ruby 3.0.0preview1 (2020-09-25 master 0096d2b895) [x86_64-darwin19] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- For example. It is foo.rb ```rb 42, 42 => a, b p a p b ``` I expected it. ```sh 42 42 ``` But, Real result. ```sh hoge.rb:1: syntax error, unexpected ',', expecting end-of-input 42, 42 => a, b ``` Is this intentional? -- https://bugs.ruby-lang.org/