We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do something like this will get a compile error. https://play.crystal-lang.org/#/r/4s6z
p {1, 2} #=> Syntax error in eval:1: unexpected token: ,Syntax error
Use parenthesis can fix it
p ({1, 2}) #=> {1, 2}
I'm not sure, but seems like a bug.
The text was updated successfully, but these errors were encountered:
No, this is how the language works. { after an identifier means passing a block to a method.
{
Duplicate of #4826 (and probably of many others).
Sorry, something went wrong.
Duplicate of #2746 Duplicate of #1051
@asterite Clear enough! Thanks.
No branches or pull requests
Do something like this will get a compile error. https://play.crystal-lang.org/#/r/4s6z
Use parenthesis can fix it
I'm not sure, but seems like a bug.
The text was updated successfully, but these errors were encountered: