Nested rest keyword argument

Issue #10028 has been updated by Nobuyoshi N…

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 N.
  • Status: Open
  • Priority: Normal
  • Assignee: Yukihiro M.
  • Category: syntax
  • Target version:
  • ruby -v: trunk
  • Backport: 2.0.0: REQUIRED, 2.1: REQUIRED

ネストしたrest argumentは通りますが

def f((*a)) end

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs