[ruby-dev:48396] [ruby-trunk - Bug #10028] nested rest keyword argument

From: nobu@...
Date: 2014-07-11 08:03:13 UTC
List: ruby-dev #48396
Issue #10028 has been updated by Nobuyoshi Nakada.

Related to Feature #8895: Destructuring Assignment for Hash added

----------------------------------------
Bug #10028: nested rest keyword argument
https://bugs.ruby-lang.org/issues/10028#change-47708

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: syntax
* Target version: 
* ruby -v: trunk
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
ネストしたrest argumentは通りますが

~~~ruby
def f((*a)) end
~~~

ネストしたrest keyword argumentはsyntax errorになります。

~~~ruby
def f((*a)) end #=> syntax error, unexpected **arg
~~~



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next