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

From: nobu@...
Date: 2014-07-11 08:02:40 UTC
List: ruby-dev #48395
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
~~~



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

In This Thread

Prev Next