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
Actions
Like0
Like0Like0Like0Like0