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
The following fails to parse:
macro test(c1, c2) select when {{c1}}.receive # .. when {{c2}}.receive # .. end end
With the error:
In test.cr:8:1 8 | end ^ Error: expecting token 'EOF', not 'end'
The workaround is to do something like the following:
macro test(c1, c2) {{"select".id}} when {{c1}}.receive # .. when {{c2}}.receive # .. {{"end".id}} end
Which will emit the correct code.
Crystal 0.35.1 (2020-06-21)
LLVM: 10.0.0 Default target: x86_64-pc-linux-gnu
The text was updated successfully, but these errors were encountered:
Try wrapping it in {% begin %} ... {% end %}. I.e.
{% begin %} ... {% end %}
macro test(c1, c2) {% begin %} select when {{c1}}.receive # .. when {{c2}}.receive # .. end {% end %} end
Sorry, something went wrong.
select
Successfully merging a pull request may close this issue.
The following fails to parse:
With the error:
The workaround is to do something like the following:
Which will emit the correct code.
Crystal 0.35.1 (2020-06-21)
LLVM: 10.0.0
Default target: x86_64-pc-linux-gnu
The text was updated successfully, but these errors were encountered: