You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because the call rule accepts dot-call syntax including argument list, but method_call unconditionally sequences call with another argument list:
In general, I don't consider it a huge priority to avoid accepting invalid code, but I'd be open to a change that tightens the grammar in some way to disallow this.
The grammar accepts the following code:
And produces the following syntax tree:
This is because the
call
rule accepts dot-call syntax including argument list, butmethod_call
unconditionally sequencescall
with another argument list:By comparison, Ruby rejects the example code:
The text was updated successfully, but these errors were encountered: