Reject argument command call taking a block with more trailing arguments#3652
Conversation
d254970 to
eff58a3
Compare
|
I'm okay to merge this as-is, but I'm wondering if it indicates that we're passing |
|
Let me check again later when I got some time. I didn't yet find the place where |
|
Actually, would |
|
I think so, because Line 15584 in 90a098d |
https://bugs.ruby-lang.org/issues/21168#note-5 The added code samples align with `parse.y`, except for `foo(bar baz do end)` which `parse.y` currently rejects but shouldn't.
eff58a3 to
3a4e102
Compare
|
(I just rebased and added That Though it's not unreasonable to think that I am missing something or that the fix is better placed at a different location |
|
Right, but I'm talking about the Line 18647 in 90a098d |
|
Yeah, but that command call is allowed. Only stuff following it should be rejected, so I don't currently see how it would be relevant. It's ok to reject this if you want to take this yourself. Looking at the proper solution to learn from later is good for me too, I have stared at this for a while longer now and am not really getting any further. |
|
Ahh I'm sorry, I misread the ticket. I think this is definitely correct. |
https://bugs.ruby-lang.org/issues/21168#note-5
The added code samples align with
parse.y, except forfoo(bar baz do end)whichparse.ycurrently rejects but shouldn't.