Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't parse method argument like numbered parameter #4892

Closed
shuujii opened this issue Dec 21, 2019 · 0 comments
Closed

Can't parse method argument like numbered parameter #4892

shuujii opened this issue Dec 21, 2019 · 0 comments

Comments

@shuujii
Copy link
Contributor

shuujii commented Dec 21, 2019

Ruby

$ ruby -e 'def m(_1) _1 end; p m(:m)'
-e:1: warning: `_1' is reserved for numbered parameter; consider another name
:m

mruby

$ mruby -e 'def m(_1) _1 end; p m(:m)'
-e:1:8: warning: numbered parameter in nested block
-e:1:8: syntax error, unexpected tNUMPARAM, expecting ')'
-e:1:8: numbered parameter outside block
@matz matz closed this as completed in 7e63559 Dec 27, 2019
matz added a commit that referenced this issue Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant