-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
sugar.collect
can't be used in templates
#14332
Comments
Workaround: import sugar
template foo {.dirty.} =
discard collect(newSeq, for i in 1..3: i)
foo()
|
Fixed by #16089 |
timotheecour
pushed a commit
to timotheecour/Nim
that referenced
this issue
Dec 3, 2020
… (nim-lang#16089) * changelog * add testcase, fixes nim-lang#14332
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
… (nim-lang#16089) * changelog * add testcase, fixes nim-lang#14332
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
… (nim-lang#16089) * changelog * add testcase, fixes nim-lang#14332
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example
Current Output
Additional Information
The text was updated successfully, but these errors were encountered: