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

Symbols like numbered parameters in block get syntax error #5295

Closed
shuujii opened this issue Jan 21, 2021 · 0 comments
Closed

Symbols like numbered parameters in block get syntax error #5295

shuujii opened this issue Jan 21, 2021 · 0 comments

Comments

@shuujii
Copy link
Contributor

shuujii commented Jan 21, 2021

Example

$ bin/mruby -e 'p Array.new(1){:_1}'
-e:1:18: syntax error, unexpected tNUMPARAM
$ ruby -e 'p Array.new(1){:_1}'
[:_1]
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