From: shyouhei@... Date: 2020-09-28T00:17:07+00:00 Subject: [ruby-dev:50963] [Ruby master Bug#17190] Not working multiple assignment by rightward assignment statement Issue #17190 has been updated by shyouhei (Shyouhei Urabe). You need parens. ```ruby [42, 42] => a, b ``` ---------------------------------------- Bug #17190: Not working multiple assignment by rightward assignment statement https://bugs.ruby-lang.org/issues/17190#change-87762 * 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/