mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Redo of https://github.com/ruby/prism/pull/3669 with more tests https://github.com/ruby/prism/commit/48b403ea79
47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
p(p a, x: b => value)
|
|
^~ unexpected '=>'; expected a `)` to close the arguments
|
|
^ unexpected ')', expecting end-of-input
|
|
^ unexpected ')', ignoring it
|
|
|
|
p(p a, x: => value)
|
|
^~ unexpected '=>'; expected a `)` to close the arguments
|
|
^ unexpected ')', expecting end-of-input
|
|
^ unexpected ')', ignoring it
|
|
|
|
p(p a, &block => value)
|
|
^~ unexpected '=>'; expected a `)` to close the arguments
|
|
^ unexpected ')', expecting end-of-input
|
|
^ unexpected ')', ignoring it
|
|
|
|
p(p a do end => value)
|
|
^~ unexpected '=>'; expected a `)` to close the arguments
|
|
^ unexpected ')', expecting end-of-input
|
|
^ unexpected ')', ignoring it
|
|
|
|
p(p a, *args => value)
|
|
^~ unexpected '=>'; expected a `)` to close the arguments
|
|
^ unexpected ')', expecting end-of-input
|
|
^ unexpected ')', ignoring it
|
|
|
|
p(p a, **kwargs => value)
|
|
^~ unexpected '=>'; expected a `)` to close the arguments
|
|
^ unexpected ')', expecting end-of-input
|
|
^ unexpected ')', ignoring it
|
|
|
|
p p 1, &block => 2, &block
|
|
^~ unexpected '=>', expecting end-of-input
|
|
^~ unexpected '=>', ignoring it
|
|
^ unexpected ',', expecting end-of-input
|
|
^ unexpected ',', ignoring it
|
|
^ unexpected '&', ignoring it
|
|
|
|
p p p 1 => 2 => 3 => 4
|
|
^~ unexpected '=>', expecting end-of-input
|
|
^~ unexpected '=>', ignoring it
|
|
|
|
p[p a, x: b => value]
|
|
^ expected a matching `]`
|
|
^ unexpected ']', expecting end-of-input
|
|
^ unexpected ']', ignoring it
|
|
|