Forum: Ruby-dev [Open] nested rest keyword argument

F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2014-07-11 10:03
(Received via mailing list)
Issue #10028 has been reported by Nobuyoshi Nakada.

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

* 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
~~~
This topic is locked and can not be replied to.