Actions
Bug #18828
closed[Ripper] Anonymous parameter forwarding failures are not checked
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
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
- Related to Feature #11256: anonymous block forwarding added
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
- Related to Feature #18351: Support anonymous rest and keyword rest argument forwarding added
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
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
Like0
Like0Like0Like0Like0