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 #1

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

  • Related to Feature #18351: Support anonymous rest and keyword rest argument forwarding added
Actions #4

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

  • Status changed from Open to Closed

Applied in changeset git|1a70973f7557af33bfca6e2edc5cd302937425a4.


ripper: Check if anonymous parameters defined [Bug #18828]

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0