[ruby/prism] Reject p(p a, &block => value) and similar
p(p a, &block => value)
They were being parsed as p((p a, &block) => value). When we get to this point, we must not just have parsed a command call, always consuming the => is not correct.
p((p a, &block) => value)
=>
Closes [Bug #21622]
https://github.com/ruby/prism/commit/796ab0edf4
[ruby/prism] Reject
p(p a, &block => value)and similarThey were being parsed as
p((p a, &block) => value).When we get to this point, we must not just have parsed a command call, always consuming the
=>is not correct.Closes [Bug #21622]
https://github.com/ruby/prism/commit/796ab0edf4