Project

General

Profile

« Previous | Next » 

Revision 2870b7d7

Added by Earlopain (Earlopain _) about 1 month ago

[ruby/prism] Reject p(p a, &block => value) and similar

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.

Closes [Bug #21622]

https://github.com/ruby/prism/commit/796ab0edf4