-
-
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
template treated as template(): untyped when using in template without bracket #14330
Comments
I think that the behavior to see is expected. You are trying to expand the code_lines template, right? If so, I think that it should have the parens. Your code modified: https://play.nim-lang.org/#ix=2lRb |
But the following code is ok. I think people will be confused why the proc p2() = p1(code_lines) |
This is the same bug with #14332, add {.dirty.} to the template can fix the problem too. |
Duplicate of #13515 |
closing as duplicate |
Example
Current Output
Expected Output
Possible Solution
change the second template to proc
Additional Information
The text was updated successfully, but these errors were encountered: