Project

General

Profile

Actions

Bug #18828

closed

[Ripper] Anonymous parameter forwarding failures are not checked

Added by nobu (Nobuyoshi Nakada) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:108902]

Description

Anonymous rest parameter

$ ruby -c -e 'def b; c(*); end'
-e:1: no anonymous rest parameter

$ ruby -rripper -e 'p Ripper.new("def b; c(*); end").tap(&:parse).error?'
false

Anonymous keyword rest parameter

$ ruby -c -e 'def b; c(**); end'
-e:1: no anonymous keyword rest parameter

$ ruby -rripper -e 'p Ripper.new("def b; c(**); end").tap(&:parse).error?'
false

Anonymous block parameter

$ ruby -c -e 'def b; c(&); end'
-e:1: no anonymous block parameter

$ ruby -rripper -e 'p Ripper.new("def b; c(&); end").tap(&:parse).error?'
false

Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #11256: anonymous block forwardingClosedmatz (Yukihiro Matsumoto)Actions
Related to Ruby master - Feature #18351: Support anonymous rest and keyword rest argument forwardingClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0